Sudip Simha
Sudip Simha

Reputation: 41

Firebase Phone Auth, Cannot receive SMS OTP on phones that does not show a 10-digit Mobile # as in getLine1Number()

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.

  1. How do I get the firebase phone authentication to work with any service provider SIM in India ? - Otherwise if someone can please confirm if this is a known limitation with firebase ?

Upvotes: 3

Views: 2121

Answers (1)

Sudip Simha
Sudip Simha

Reputation: 41

After upgrading to com.google.firebase:firebase-auth:11.6.0' problem is resolved.

Upvotes: 1

Related Questions