Flutter java.io.IOException: FIS_AUTH_ERROR - flutter

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.

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.

Related

Suddenly receiving firebase database error when logging in through app: " Evaluation error: NSURLErrorDomain: -1003"

I am currently working on an IOS app built through Swift on Xcode. Firebase packages are installed using Cocoapods, and all pods are updated. Additionally, I double-checked that the Plist and Google-Service Info files are correct.
This is the full error line I receive when logging into the app and trying to retrieve user information from the database:
nw_proxy_resolver_create_parsed_array [C3.1.1 proxy pac] Evaluation
error: NSURLErrorDomain: -1003
I am unable to figure out how to resolve this issue as there were no changes in my code and it was working beforehand perfectly.
I can provide code snippets if needed but since the app was working prior, I am assuming this isn't related to my code.
The only time I was able to solve this issue temporarily was to reset the package caches through XCode, allowing me to view posts and other content pulled from the firebase backend. Unfortunately, after I restarted the app, this solution did not work anymore, and the same error from above popped up. Since resetting the package caches worked initially, I am assuming there is no direct correlation between the error and my source code.
Does anyone have any idea as to ways I can solve this issue? It has prevented me from working on my app for several days now. Thanks for any help!
Update: After looking over my code one more time, I found that there was a missing dot in a line of code, leading to my IOS app not running. This did NOT solve the error of nw_proxy_resolver_create_parsed_array [C3.1.1 proxy pac] Evaluation error: NSURLErrorDomain: -1003, but since the app is working successfully, my problem is solved.

HIVE openBox problem with special character FLUTTER

I have the following problem.
In my current app that I have on App Store and Google Play I have saved all of users data in a Hive box called app_data:
Hive.openBox("app_data")
but now in my next update on Android it gives me error that the box can not be opened when initialized. I have searched on the internet and found that the problem is the special character "_" that I am using and when I remove it from the name and call
Hive.openBox("appData")
it doesn't give me any errors.
How can I resolve this problem or migrate old data from "app_data" to a new box for ex.: "appData"?
I figured it out, just delete your app from the device and do a fresh install.

Read Flutter Firebase

i have a database in firebase and i am trying to read it using flutter. I found this tutorial here https://medium.com/flutterdevs/explore-realtime-database-in-flutter-c5870c2b231f
it looks pretty easy so i followed the steps. I added the read function in my code and when i run it i get this error here https://gyazo.com/a1cfe40527ad9908dcd4edfcd36d2cc9
if i search the error, i only get the solution to clean and flutter get but this doesn't work do you guys have any ideas?

Failed to execute 'replaceState' on 'History': A history state object with URL

We have faced this type of problem.We are Developing phonegap app.We don't changed any code.But unfortunately my eclipse stop.And then we changed project location.then we open html page in browser.We got error like this
Please guide to us.
You can test your app inside a web server, that solved my problem, or you can simply delete "history.replaceState()" in your jquery.mobile.js file, if you don't use the browser history in your mobile app
Waiting for chrome developers to fix this issue from the last update.

Facebook SDK for .NET - Security Warning Issue

everyone. Today I encounter the following message in my Windows Phone App:
Success
SECURITY WARNING: Please treat the URL above as you would your password and do not share it with anyone.
This happens when my users Login through the Web Browser Control, which get the Login URL from the GetLoginUrl method from the Facebook SDK for .net. This problem is not only happening in my Apps, I've seen users from other Apps having the same problem.
Anyone found a solution to this?
I'm running this SDK in my PictureWeather (Windows Phone 7 & Windows Phone 8) and Picture2Cams (Windows Phone 8) Apps.
Had the same problem. In my app I changed this line:
parameters["redirect_uri"] = "https://www.facebook.com/connect/login_success.html";
To this line:
parameters["redirect_uri"] = "https://m.facebook.com/connect/login_success.html";
And it works now.
Had the same problem on our WP8 app using the Facebook SDK for Windows Phone (http://facebooksdk.net/docs/phone/) and the indicated solution with changing the redirect URL also worked for us.
Thanks for submitting this solution.
I ran into this problem, myself, and did a bit of digging to get to the root of the issue. The problem seems to spring from some unknown (to me, anyway) change on Facebook's side, where previously the authentication response URL was in the form
https://www.facebook.com/connect/login_success.html#access_token= ...
for some reason it now comes back from the login flow as
https://www.facebook.com/connect/login_success.html#?access_token= ...
The code in FacebookSDK.NET does a comparison in line 104 of LoginPage.xaml.cs with a simple Uri equality test
if (e.Uri == WebAuthenticationBroker.EndUri)
which fails to return true when the question mark appears in the middle. I expect Facebook will correct this on their end just because too much stuff breaks, but in the meantime a pretty clean fix is to get the FacebookClient sources from GIT instead of NuGet and change the comparison to this
UriBuilder clean = new UriBuilder(e.Uri);
clean.Query = "";
if (clean.Uri == WebAuthenticationBroker.EndUri)
The code will then run just fine, but this is seems ultimately to be Facebook's bug when checking the documentation on their developer site.
I hope this helps some others, I signed up for Stackoverflow just to make this post. :)
Use latest facebook sdk for windows phone. This issue got resolved in latest sdk. I am using Facebook.Client 0.8.2-alpha and its working great. I followed http://nuget.org/packages/Facebook.Client and http://facebooksdk.net/docs/phone/controls/login-ui-control
I guess the only way he did this was by downloading both projects from their official Github (Facebook and Facebook.Client) and reference them in your app instead of using the DLL that you can get from Nuget.
With both projects in hand, you can change this parameters on the Facebook.Client Project in the file FacebookSessionClient. Then build all the project and run.
However this solution didnt work for me too.