Felix E. Klee 於 04/13/2015 07:08 AM 寫道:

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:

Yes, your understanding is correct.

Best regards,
Hsinyi

--
Hsin-Yi Tsai 蔡欣宜
Mozilla Taiwan
ht...@mozilla.com

_______________________________________________
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to