get msisdn in FirefoxOS

366 views Asked by At

i'm trying to retrieve MSISDN in a FirefoxOS phone. i'm doing the extraction of other data, so i have many permissions on my manifest.webapp:

"permissions":{
 "mobileid": {},
 "mobilenetwork": {},
 "mobileconnection": {},
 "open-remote-window": {},
 "telephony": {},
 "wifi-manage": {}
}

my problem is the phone gives me nothing about the MozMobileICCInfo interface :(

the property i'm looking for is MozMobileICCInfo.msisdn

i'm testing my app as "certified". can anybody help me?

1

There are 1 answers

1
mate64 On

Powerful and dangerous APIs are not available to third-party apps.

Only internal apps can access the general Telephony APIs on , because they are intended for system-level apps and default apps created by Mozilla/operators/OEMs.

Check the Permissions Table for Internal (Certified) Apps (MDN).

However, it is recommended to use the Mobile Identity API, to obtain a verified phone number (MSISDN):

"permissions": { "mobileid": {} }

Implemented and enabled in >= 2.0 and allowed for certified and privileged apps.