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.
2
Answers
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.
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.