I am trying to use the phone number to authenticate the sign into my app instead of UUID. I haven't found any particular links to look up. Any help is appreciated. Thanks!
Asked
Active
Viewed 753 times
0
-
Ask user to provide thier phone number. Any other way would be illegal. – Krrishnaaaa Apr 18 '14 at 18:39
-
can't you use the ESN? – Paul Bastide Apr 18 '14 at 18:42
-
Krrishnaaa - I think That is the only way out. Paul - I want the user to have his details even after he changes his phone like whatsapp. – is3av Apr 20 '14 at 16:38
1 Answers
0
There is no reliable way for an Android app to find out the phone number of the device it is running on.
First, not all Android devices are phones.
Second, not all devices have SIM cards that have their correct phone number. Methods like getLine1Number() rely on that information.
Here is Google's recommendations on identifying app installations.
CommonsWare
- 986,068
- 189
- 2,389
- 2,491