0

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!

is3av
  • 39
  • 2

1 Answers1

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