3

I want to disable Re-Captcha in Firebase Phone Auth in Flutter.

In other solutions where folks enable the 'Android Device Verification' API in Google Cloud Console and everything is working fine for them, But Currently 'Android Device Verification' API is Removed by Google and merged with 'Google Play Integrity API'.

I already enabled the 'Google Play Integrity API', Plus I added my device SHA1 and SHA-256 both in the Firebase console and add the update google-service.json in the project.

Still, I am getting the Re-Captcha screen.

I added the following libraries in app/build.gradle

enter image description here

And 'Google Play Integrity API' is also enabled:

enter image description here

Also, I enabled the 'App Check' in Firebase Console, Added SHA 256 is added.

enter image description here

amit
  • 659
  • 1
  • 8
  • 21
  • Have you found any solutions? – Nehil Koshiya Apr 21 '23 at 04:44
  • No, not now @NehilKoshiya – amit Apr 21 '23 at 04:46
  • You can disable app verification by setting true to `appVerificationDisabledForTesting` check this [github](https://github.com/firebase/flutterfire/discussions/3381#discussioncomment-2829411) also check the suggestions in these stackoverflow [link1](https://stackoverflow.com/questions/51814468/firebase-phone-authentication-pops-up-a-recaptcha-verification-window-on-ios-eve) & [link2](https://stackoverflow.com/a/67635629/18265638) – Sathi Aiswarya Apr 21 '23 at 07:32
  • Already tried but not working @SathiAiswarya – amit Apr 21 '23 at 09:09
  • There is a bug raised for this at [github](https://github.com/firebase/flutterfire/issues/10593) shared by Niladri in below answer you can follow that further updates. – Sathi Aiswarya Apr 21 '23 at 13:50

3 Answers3

0

try to activate app check in your firebase console https://firebase.google.com/products/app-check then register you app, this worked for me

Chalwe19
  • 446
  • 4
  • 9
0

LATEST UPDATE:

Firebase Github comment

Assuming you have done everything as per the documentation of AppCheck and PlayIntegrity guidelines and yet you have the ReCaptcha appearing, this information is for you.

In addition, you might have the OTP sms having the label .firebaseapp.com, instead of the actual App name.

This is an issue on Which Firebase is working currently on priority basis.

Multiple users like me have reported this to Firebase Github.

Here is my reported issue.

0

Just add SHA-1 & SHA-256 Keys in your Firebase project.

You can add key using below steps:

Open terminal in your IDE and change access android/gradlew signingReport and press enter.

Then you can copy paste both keys from debug section to your firebase project and you will not get Re-Captcha verification.

Shubhanshu Kashiva
  • 136
  • 1
  • 1
  • 7