Reputation: 41
Using Firebase Phone Authentication. It works well on any phone as long as the Telephony.Manager getLine1Number() returns a 10 digit mobile#.
(Not to misread that I am using getLine1Number() for firebase auth. I do not. All I am pointing is that the Firebase auth does not seem to work on phone where getLine1Number() too returns a null)
Some SIM provides in India (some with large market share) do not have this data stored and so getLine1Number() returns a null.
Upvotes: 3
Views: 2121
Reputation: 41
After upgrading to com.google.firebase:firebase-auth:11.6.0' problem is resolved.
Upvotes: 1