0

Is there a way on the Windows Phone to access the users mobile number? Is it possible to gain this information by asking permission or possible having the user sign in via a Windows Live Account to gain the information? I wanted to see if there is a solution other than using Twilio in order to verify a phone number via text message. I'm working specifically on Mango now but would be interested if this would be possible in Apollo as well.

Jay
  • 1
  • 1

2 Answers2

2

Unfortunately this is not supported. To gain this information you will need to ask the user to manually for their phone number. This is to stop their phone number being retrieved by any app which requests it, which could then lead to spam/selling of the phone number (to name a few scenarios)

Considering that this is a security limitation (not a hardware/software limitation), I doubt very much that this security conscious decision will be revoked for Apollo (Windows Phone 8) and access to the phone number will be granted to any app that wants it.

ry8806
  • 2,258
  • 1
  • 23
  • 32
  • I think it might be possible if you do get the user to give access via a windows live account - http://msdn.microsoft.com/en-us/library/live/hh826526 – Jay Aug 20 '12 at 17:08
  • Very true, however this can return multiple phone numbers and if the user uses more than one device with the same "Windows Live Account" then there's no guaratee that the number stored in "Mobile" will be the correct one. You would have to display the numbers found and let the user choose the correct one – ry8806 Aug 21 '12 at 07:54
0

You can retrieve contacts with mango.

See : MSDN

Regards.

David
  • 1,679
  • 11
  • 22