0

I'm getting "FIS_AUTH_ERROR" error when using the release build but in debug build not getting any issue, it's working completely in last week but today I'm getting this error. I have search lot's of think and getting solution but it's not be work in my end. below I'm mention the which solution I have try.

1 First solution.
2 Second solution.

I have try both above solution but it's not working my end.

Error code line:

var _deviceToken = await FirebaseMessaging.instance.getToken();

Thank in Advance.

Alpit Panchal
  • 709
  • 1
  • 7
  • 25
  • Now, If I'm create the Signed APK and install directly So it's working but when I install the build from Play store so getting issue. Please help me for this – Alpit Panchal Aug 18 '22 at 14:59

2 Answers2

1

I had the same issue not able to generate fcm device token in android but it was working fine in ios.

I checked web api key in the firebase console it was different than what I had in google-servies.json so i just replace json file api key with firebase.

And it worked.

Rahul sharma
  • 1,492
  • 12
  • 26
  • day-05, and this worked. thanks @rahul-sharma. But I'm still confused why API key was from the google cloud, and why this firebase key and google console key are different. – Sijan Neupane May 05 '23 at 10:24
0

After 3 day's I have found the solution. I have take SHA-1 from Google developer console(App integrity) and add in Google cloud console project and also set inside Firebase project and updated Google-service.json file use.

Alpit Panchal
  • 709
  • 1
  • 7
  • 25