On Sun, Apr 12, 2015 at 11:29 PM, Fabrice Desré <[email protected]>
wrote:
> You didn't set "type": "privileged" in your manifest so you didn't get
> the permission.

Yes… Thanks!

BTW the manifest validated.

Anyhow, now `navigator.mozMobileConnections[1]` gives:

    {
        lastKnownNetwork: 214-07",
        lastKnownHomeNetwork: "262-01-Telekom.de",
        onvoicechange: null,
        ondatachange: null,
        ondataerror: null,
        oncfstatechange: null,
        onemergencycbmodechange: null,
        onotastatuschange: null,
        oniccchange: null,
        onradiostatechange: null
    }

As far as I understand it, that’s all network information there is for
privileged apps. `lastKnownNetwork` and `lastKnownHomeNetwork` can be
parsed to get network operator (MNC) and country (MCC). For example,
someone published a [Gist][1] for:

“Using mozMobileConnections with MNC and MCC to enable app features for
specific country/carrier combinations”.

[1]: https://gist.github.com/digitarald/7829694
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to