2

Everything was working good yesterday with firebase auth, today it gives me that error.

W/BiChannelGoogleApi(19191): [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@138591a
W/DynamiteModule(19191): Local module descriptor class for com.google.firebase.auth not found.
I/FirebaseAuth(19191): [FirebaseAuth:] Loading module via FirebaseOptions.
I/FirebaseAuth(19191): [FirebaseAuth:] Preparing to create service connection to gms implementation
I/flutter (19191): PlatformException(exception, An internal error has occurred. [ Requests from this Android client application are blocked. ], null)
Abanuob Fouad
  • 75
  • 3
  • 6

2 Answers2

4

This looks similar to this as per your error;

Requests from this Android client application com.joycustomers.joybank are blocked.

You'd need to check for two things;

  1. Your SHA1 signing certificate key being used is correct and listed in the Firebase Console's project settings.
  2. You should have the freshest copy of google-services.json from Firebase Console's project settings where you add signing certificate keys. There's a download google-services.json button. Always use the freshest copy whenever you've changed Firebase settings. Read more here.

Update:

OP had updated his Firebase Project settings by changing from Free to Pay as You Go payment plan. This changed his Firebase Project settings and a fresh copy of google-services.json form the Firebase Console fixed the issue.

MD Naseem Ashraf
  • 1,030
  • 2
  • 9
  • 22
  • i have update the SHA1 signing certificate key but the same error – Abanuob Fouad Mar 20 '19 at 07:59
  • Have you published this app before on the Play store? – MD Naseem Ashraf Mar 20 '19 at 08:02
  • Okay, you need to make sure you've added the same SHA1 key from your Google Play Console into your Firebase Console project settings; https://stackoverflow.com/questions/55254327/published-app-not-working-with-firebase-authentication/55254353#55254353 – MD Naseem Ashraf Mar 20 '19 at 08:28
  • I did it and the problem not with published version it with debug version and i add also SHA1 debug to firebase – Abanuob Fouad Mar 20 '19 at 08:32
  • Okay. Did you download a new copy of google-services.json from Firebase Console and attached it with your project and rebuild the apk (after adding the SHA1 keys to Firebase Console)? – MD Naseem Ashraf Mar 20 '19 at 08:32
  • No it was there already from long time and everything was fine same device same pc same SHA1 everything was fine until today – Abanuob Fouad Mar 20 '19 at 08:35
  • See, whenever you do any changes to the Firebase Console you need to get a new copy of the google-services.json file, attach this newer version to your project and recompile it. Try with a new download of the google-services.json file and see if the new apk works. – MD Naseem Ashraf Mar 20 '19 at 08:38
  • I did something but i don't know if that the problem or not i have changed the plan from free to pay as you go – Abanuob Fouad Mar 20 '19 at 08:39
  • What did you do? – MD Naseem Ashraf Mar 20 '19 at 08:40
  • i have changed the plan from free to pay as you go – Abanuob Fouad Mar 20 '19 at 08:41
  • That might change your settings, anyways, try to download a new copy of your google-services.json from Firebase console and replace your old one in project files and then rebuild the app. Try it and see. – MD Naseem Ashraf Mar 20 '19 at 08:44
  • It's working? Good. If it's helped you, kindly accept my answer and upvote my linked answer too as it's related and will help visibility. – MD Naseem Ashraf Mar 20 '19 at 08:48
1
  1. Get SHA1 first by command goto your .android folder mine path is and command is as following

    C:\Users\lenovo\.android>keytool -list -v -keystore     
    "C:\Users\lenovo\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android
    

and then

  1. Add it to your firebase.console.com

  2. And download the google-services.json file and put in android/app folder

if problem is occuring same then you have to add your support email in firebase enter image description here add support email

Siong Thye Goh
  • 3,518
  • 10
  • 23
  • 31