On 04/12/2015 01:41 PM, Felix E. Klee wrote: > According to the [app permissions documentation on MDN][1], the Mobile > Network API is available to privileged apps. On the [page for that > API][2], however, it says: "This API is available on Firefox OS for > internal applications only." > > *Who is right? And if the API is available to privileged apps, how do > I get the network operator name?* > > (For a demo at a Firefox OS workshop, I am looking for a simple API > which requires an app to be privileged.) > > [1]: https://developer.mozilla.org/en-US/Apps/Build/App_permissions > [2]: https://developer.mozilla.org/en-US/docs/Web/API/MozMobileNetworkInfo
The info on MDN is correct: mobilenetwork is privileged, and mobileconnection is certified (ie. internal only). mobilenetwork gives access to a subset of what mobileconnection provides. You can look at this test to see what it accessible when you're granted the mobilnetwork permission: http://mxr.mozilla.org/mozilla-central/source/dom/mobileconnection/tests/mochitest/test_mobilenetwork_permission.html?force=1#4 Fabrice -- Fabrice Desré b2g team Mozilla Corporation _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
