MobileIdentity is the way to go.
Just make sure you verify the assertion!

On 21.08.2014 19:22, Ehsan Akhgari wrote:
> See https://wiki.mozilla.org/WebAPI/MobileIdentity.
> 
> 
> On Thu, Aug 21, 2014 at 1:17 PM, Ian Bicking <[email protected]
> <mailto:[email protected]>> wrote:
> 
>     There's a new API in 2.0, the MSISDN verification API:
>     https://bugzilla.mozilla.org/show_bug.cgi?id=988469 (MSISDN being
>     the hard way to say "phone number" ;)
> 
>     I don't know if it's documented anywhere yet. 
> 
> 
>     On Thu, Aug 21, 2014 at 11:59 AM, Daniel Wacker <[email protected]
>     <mailto:[email protected]>> wrote:
> 
>         Hi, I'm working on a very simple app that is just a login entry
>         point for an online service.
> 
>         Login credentials are phone number and a password.
> 
>         Since we are on a phone, it would be nice to pre-fill the phone
>         number input field, so it contains the user's own phone number
>         which should be known to the device.
> 
>         I searched the interfaces described at
>         https://developer.mozilla.org/en-US/docs/Web/API.
> 
>         Telephony
>         MozContacts
>         MozMobileNetworkInfo
>         MozMobileConnectionInfo
> 
>         they don't provide that information.
> 
>         navigator.mozPhoneNumberService seems to be only for matching or
>         normalizing phone numbers of different formats.
> 
>         In the permissions table, I found a permission "mobileid", see
>         
> https://mxr.mozilla.org/mozilla-central/source/dom/apps/src/PermissionsTable.jsm
> 
>         How can I obtain the user's phone number?
>         _______________________________________________
>         dev-b2g mailing list
>         [email protected] <mailto:[email protected]>
>         https://lists.mozilla.org/listinfo/dev-b2g
> 
> 
> 
> 
>     -- 
>     Ian Bicking  |  Cloud Services Engineering Manager
> 
>     _______________________________________________
>     dev-b2g mailing list
>     [email protected] <mailto:[email protected]>
>     https://lists.mozilla.org/listinfo/dev-b2g
> 
> 
> 
> 
> -- 
> Ehsan
> 
> 
> _______________________________________________
> dev-b2g mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-b2g
> 

_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to