Firebase signin Annonymous always create new user on Unity Editor - firebase

I'm working on unity + firebase project and I have a problem. when I use SignInAnonymouslyAsync on Unity Editor it works fine. but when I stop and play it again it always creates a new user for me. I trying to find the solution to solve this problem but I got nothing. anyone ever got this problem or have idea to solve it?

Related

same code but error on web version in flutter. Why?

in my flutter app when data adding from web version its shows error like this on mobile. but works fine on web, I use firebase as backend. why this is happening
Since web is transpiled to javascript, that has a type number (which receives both double and int). That problem maybe solved if you cast to right type.
You can learn more about how dart handles numbers in here:
https://dart.dev/guides/language/numbers

Firebase Authentication on Xamarin.Forms

I'm new to Xamarin.Forms and I'm looking for an updated tutorial link or document that shows how to get Firebase Authentication working with Xamarin.Form or if someone can supply a GitHub link with an example of how to get firebase auth working on Xamarin.forms with Visual Studios 2019?
Note: I've followed the tutorial from https://medium.com/firebase-developers/firebase-auth-on-xamarin-forms-171432aa3d76 but it doesn't work.
I have this link for you.
https://evgenyzborovsky.com/2018/03/26/firebase-authentication-in-xamarin-forms/
Try it and let me know if it will be working or not.
this one really helped me, it is a perfect example
https://github.com/saipedireddi1/xamarin-example
using FirebaseAuthentication.net nugget

Xamarin AppUriHandler

I've been struggling with the APPUriHandler to work correct using Xamarin.Forms for building a multi platform app. I am not getting the AppHandler to work correct using the "Shared pages"
Following https://learn.microsoft.com/en-us/windows/uwp/launch-resume/web-to-app-link i have managed to open the appif i launch the app manual, when using a link I get stuck on the SplashScreen
which throws an error :
Its just when using the handler that it fails. I have identified that if I add a new page on the UWP project, and navigate to that page, it works fine. My problem is using the .Net standard (Old PCL) method as it is using multi platform. Is there a way to get past this or call the LoadApplication a different way from UWP MainPage as that is where it breaks
or anything that can steer me in the right direction?

Firebase.Auth.PlayGamesAuthProvider class missing in auth 4.4.3?

I've been scouring the internet looking to see if anyone else is hitting this problem, maybe some one else here has seen this recently. I'm integrating Google Play services and using Firebase database with Google Play authentication in a Unity project.
screenshot of autocomplete list with missing class:
For some reason, I seem to have every component of Firebase.Auth except PlayGamesAuthProvider, which is needed to call the GetCredential function. I'm seeing this error:
error CS0234: The type or namespace name 'PlayGamesAuthProvider' does not exist in the namespace 'Firebase.Auth'. Are you missing an assembly reference?
I've reinstalled my Firebase package already and double checked everything for clashing plugins. I'm really hitting a wall here, just curious if anyone else has seen this problem and knows how to get around it. Thanks in advance!
If anyone stumbles across this with the same problem, I've got it working. First tried to reimport the latest Firebase.Auth package from Firebase and that didn't fix the problem. I actually tried doing it a second time, making sure that all files were being re-imported, and then also re-imported the latest GooglePlayGamesPlugin package. I'm not sure which fixed it, but there was clearly something breaking down in there, maybe more-so related to the GooglePlayGamesPlugin. I even disabled/renabled my Unity services. Bottom line, keep reinstalling your stuff and eventually it will work. If I notice anything more specific I'll follow up.

Xamarin.Auth AccountStore - KeyStore was not initialized

I've had this Xamarin.Auth AccountStore working in my app for a while, but then decided to do some updates to some Nuget Packages and Target Android versions >_<
I now have no idea what went wrong and how to get it working again, here is the exception:
Java.Security.KeyStoreException: KeyStore was not initialized
The code is pretty simple and looks like this:
var accountStore = AccountStore.Create(Android.App.Application.Context);
var accounts = accountStore.FindAccountsForService(providerName);
The 2nd line is throwing the exception.
This is in the Android project, being called from a PCL DependencyService.
It has been working this way for a while, I guess something changed in a version update in one of the packages but I don't know what, any ideas?
try to repair your visual studio installation.
This made the trick for our project. We had the same problems like you.

Resources