Firebase phone otp authentication not working all of a sudden

63 views
Skip to first unread message

sanket dk

unread,
Jul 29, 2024, 11:04:44 AM (3 days ago) Jul 29
to Firebase Google Group
July 2024: Firebase phone OTP authentication suddenly stopped working for the Ionic Capacitor Android app

Everything was working fine until few days ago, now I'm getting a 400 Bad Request invalid-argument error when trying to authenticate using a phone number. The OTP is not being received. I'm using Angular 17, Ionic 7, Capacitor 5, Firebase 10.9, and Angular/fire 17. I don't think it's related to the code; it might be due to some configuration changes or some deprecations in Firebase, the Google console, or the Play Store. Authentication works fine on the website however, facing this issue only in Android native app. Could someone please guide me on this? I've been stuck on this for two days.

The SHA1 and SHA256 of the app signing key have already been added to the Firebase console. The google-services.json file has been downloaded and placed in the android/app folder.


Thank you for your time.

Nohe

unread,
Jul 29, 2024, 12:51:33 PM (3 days ago) Jul 29
to Firebase Google Group
Do you have App Check setup for your mobile app? I would assume that there may be something with Play Integrity going on here.

"The SHA1 and SHA256 of the app signing key have already been added to the Firebase console." <-- This is the certificate fingerprint from the Play console, and not the upload key used locally on you device prior to uploading, correct?

-Nohe

sanket dk

unread,
Jul 29, 2024, 3:22:50 PM (3 days ago) Jul 29
to Firebase Google Group
Yes Nohe, thank you for your response. Yes, you are correct, the certificate fingerprint is from the play console and not the key used locally. I don't have App check setup, may I know what is it?

Nohe .

unread,
Jul 29, 2024, 3:39:09 PM (3 days ago) Jul 29
to fireba...@googlegroups.com
Did you download the app from Google Play?

--
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/LOYhI8_aeNc/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/e4734488-fd79-415e-a60f-cf492a9e53f0n%40googlegroups.com.

sanket dk

unread,
Jul 31, 2024, 8:38:51 AM (yesterday) Jul 31
to Firebase Google Group
Yes Nohe, I downloaded the app from google play.
Reply all
Reply to author
Forward
0 new messages