Search code examples
blackberry-webworksblackberry-10

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/

Thanks.


Solution

  • You can detect the Mobile Network Code (MNC) value using the following BlackBerry 10 WebWorks extension.

    https://github.com/blackberry/WebWorks-Community-APIs/tree/master/BB10/deviceInfo

    The MNC is a numeric value that you can associate with a carrier. For example the MNC of Rogers Wireless (canadian carrier) is 720. More info here: https://en.wikipedia.org/wiki/Mobile_country_code