Hi there, This is something I wanted to investigate, with the aim of improving the MDN docs, so I’ve moved it to a separate thread.
Fabrice said that the Mobile Network API (privileged) basically offers a limited subset of the Mobile Connection API (certified). Does the stuff that Mobile Network provides map exactly to the same stuff in Mobile Connection, or are there other implementation differences besides? Harald’s gist: https://gist.github.com/digitarald/7829694 Shows an if…else used to fork between the older navigator.mozMobileConnection and the newer navigator.mozMobileConnections (introduced to handle multiple sims, right?), which seems ok. The mnc and mcc and grabbed via mozMobileConnection.network.mnc/mcc, which are listed on https://developer.mozilla.org/en-US/docs/Web/API/MozMobileNetworkInfo However the mozMobileConnection doesn’t seem to list a network property: https://developer.mozilla.org/en-US/docs/Web/API/MozMobileConnection It has a voice and data property which seem to do something similar? It looks like the MDN information is out of date, and I need to do a bit of investigation here to get things up to date again. Where can I find the latest specs for the Mobile Connection and Mobile Network APIs? thanks! Chris Mills Senior tech writer || Mozilla developer.mozilla.org || MDN cmi...@mozilla.com || @chrisdavidmills > On 13 Apr 2015, at 03:40, Hsin-Yi Tsai <ht...@mozilla.com> wrote: > > > > 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 _______________________________________________ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g