Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Contributor
Posts: 10
Registered: ‎05-20-2013
My Device: Blackberry q10
My Carrier: reliance

Detect mobile phone carrier on Blackberry 10 Webworks app

Is there any way to detect the name of the user's mobile phone carrier in a Blackberry 10 Webworks app? I haven't found anything in the api:

http://developer.blackberry.com/html5/api/

BlackBerry Development Advisor
Posts: 767
Registered: ‎10-01-2009
My Device: All
My Carrier: N/A

Re: Detect mobile phone carrier on Blackberry 10 Webworks app

There's a community extension available which helps you retrieve some extra info: https://github.com/blackberry/WebWorks-Community-APIs/tree/master/BB10/deviceInfo

 

And a list of MCC's: https://en.wikipedia.org/wiki/Mobile_country_code

 

//returns Mobile Country Code
community.deviceInfo.getMCC()
//returns Mobile Network Code, that identifies the carrier
community.deviceInfo.getMNC()