Firebase Phone Authentication Fails to Send OTP

3,719 views
Skip to first unread message

Hamzah Alahmadi

unread,
Feb 14, 2021, 11:07:46 AM2/14/21
to Firebase Google Group
Hi,

I have implemented Firebase phone auth, and it works for the majority of people. However, very few people don't receive the OTP and don't receive any errors. How can I figure out this issue?

Thanks in advance,
Hamzah

Sam Stern

unread,
Feb 15, 2021, 5:42:41 AM2/15/21
to Firebase Google Group
Hi Hamzah,

This is, unfortunately, the reality of SMS Auth. No telecom operator around the world offers 100% message delivery and some are less reliable than others, so for a large-scale application there will be some missed messages. It's important for your app to offer some other way to sign in for users who have SMS delivery issues.

If you're seeing a pattern in this issue, for example users in a specific region or on a specific carrier missing SMS messages, please write in to Firebase support so that we can report this to the right people:
https://firebase.google.com/support

- Sam

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/8f69f6bd-05ac-40f8-9c1d-d39346ff3232n%40googlegroups.com.

h.ala...@gmail.com

unread,
Feb 16, 2021, 10:23:10 AM2/16/21
to fireba...@googlegroups.com
Hi Sam,

Thank you for getting back. The issue with the SMS delivery is that some users don’t get the SMS for multiple days even with multiple attempts. Is there a way to send the OTP SMS through other service providers (such as Twilio)? Even with using other service providers, I need the authentication to be managed through Firebase Auth for securing the database with security rules.

Thanks,
Hamzah

Sent from my iPhone

On Feb 15, 2021, at 1:42 PM, 'Sam Stern' via Firebase Google Group <fireba...@googlegroups.com> wrote:


You received this message because you are subscribed to a topic in the Google Groups "Firebase Google Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/firebase-talk/v2P11NmPrwo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/CAHafJBpUrevvXxbCVMHJP6JgO8sicR14au8oEN%2Bdv8zWFk2mWA%40mail.gmail.com.

Sam Stern

unread,
Feb 16, 2021, 10:53:33 AM2/16/21
to Firebase Google Group
Hi Hamzah,

You could use another provider and then use Firebase Custom Auth to add a user to Firebase, but there's no built-in way to do that and those providers are likely to face similar delivery issues (although maybe not to the same users).

- Sam

Reply all
Reply to author
Forward
0 new messages