VerificationFailed(Firebase Auth)

55 views
Skip to first unread message

Muti

unread,
Mar 28, 2021, 11:11:02 AM3/28/21
to Flutter Development (flutter-dev)
Hello, I am about to publish my application, but I am getting an error like the one below. Before uploading to Google Play ...
I render with "flutter build apk --release" for testing on my own device. I also add the SHA-1 key in the key I created with keystore, and add the firebase and install the json file. I'm rendering again. When I try to log in on the real device, I get an error. Please help...

I/flutter (18716): verificationFailed() -> error: This app is not authorized to use Firebase Authentication. Please verify that the correct package name and SHA-1 are configured in the Firebase Console. [ App validation failed ]

Suzuki Tomohiro

unread,
Mar 28, 2021, 11:49:23 AM3/28/21
to Muti, Flutter Development (flutter-dev)
Use the sha1 listed in the Google Play Console, not the one from keystore.

--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/e9a5cb47-1b9d-49c5-ae6e-ef1c35f42f47n%40googlegroups.com.

Muti

unread,
Mar 28, 2021, 12:58:21 PM3/28/21
to Flutter Development (flutter-dev)
Well, does it matter where the keystore file is when getting the release? For example, if key.jks is in a different directory ...
28 Mart 2021 Pazar tarihinde saat 18:49:23 UTC+3 itibarıyla suz...@gmail.com şunları yazdı:

Suzuki Tomohiro

unread,
Mar 28, 2021, 1:33:04 PM3/28/21
to Muti, Flutter Development (flutter-dev)
No, that’s not the point. Please let me know the result after using the SHA1 from Play Store.

Muti

unread,
Mar 31, 2021, 6:12:52 AM3/31/21
to Flutter Development (flutter-dev)
Hello, my application has been published on Huawei AppGallery. We can download the application from a real phone. But thanks to phone verification, it does not login. I'm getting an error saying we couldn't verify your phone number. Can you help me ? I am authenticating with a Firebase phone. I also added SHA-1, which I bought through the Google Play Console, as a fingerprint in Firebase. Then I downloaded the json file and did the build process again. Where am I going wrong?

28 Mart 2021 Pazar tarihinde saat 20:33:04 UTC+3 itibarıyla suz...@gmail.com şunları yazdı:

Suzuki Tomohiro

unread,
Mar 31, 2021, 7:14:35 AM3/31/21
to Muti, Flutter Development (flutter-dev)
Can you check whether your app works on another none-Huawai phone?

Muti

unread,
Mar 31, 2021, 8:10:36 AM3/31/21
to Flutter Development (flutter-dev)
Unfortunately, it does not verify error on both Huawei and other android phones.

31 Mart 2021 Çarşamba tarihinde saat 14:14:35 UTC+3 itibarıyla suz...@gmail.com şunları yazdı:

Wojciech S. Czarnecki

unread,
Mar 31, 2021, 9:43:51 AM3/31/21
to flutt...@googlegroups.com
Dnia 2021-03-31, o godz. 03:12:52
Muti <testmailh...@gmail.com> napisał(a):

> Hello, my application has been published on Huawei AppGallery. We can
> download the application from a real phone. But thanks to phone
> verification, it does not login. [...]
> I am authenticating with a Firebase phone. ]...] Where am I going wrong?

Most of firebase functionality require Google Play Services to work. Huawei was banned from
using American originated software and services (like GPS) by the president Trump and his
order is in effect now. Parts of GPS that can run without remote service work anyway, but
anything of it that still works on Huawei may stop to do so at any moment.

https://firebase.google.com/docs/android/android-play-services#auth-without-play-services
https://stackoverflow.com/questions/62340683/firebase-remote-config-realtime-database-on-huawei-devices


Hope this helps,

--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
Reply all
Reply to author
Forward
0 new messages