Apart from data related to the mobile connection that can be obtained via
the MozMobileConnection API [1], you can also get extra information about
the device, like the device model name [2], via the Settings API.

Cheers,

/ Fernando

[1]
https://developer.mozilla.org/en-US/docs/Web/API/Navigator.mozMobileConnections
[2] https://mxr.mozilla.org/gaia/source/apps/bluetooth/js/settings.js#141


On Tue, Aug 19, 2014 at 11:57 PM, Ehsan Akhgari <[email protected]>
wrote:

> On 2014-08-19, 4:50 AM, Aaron Cajes (Mozilla PHL) wrote:
>
>> Hi there,
>>
>> Just wondering if there is an existing WebAPI to access the Device Info
>> (Ex. Device Model Name, IMEI number, etc) in a Firefox OS based phone.
>>
>> It doesn't matter if the API is for Certified application, i just
>> wondering
>> if an API exists.
>>
>
> I think you can get the IMEI number through MozMobileConnection.sendMMI.
> I don't think we expose an API that returns the device model name, and I'm
> not sure what other information about the device you're looking for.
>
> Cheers,
> Ehsan
>
>
> _______________________________________________
> dev-webapi mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-webapi
>
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to