I'm struggling to understand why when I install Xamarin.Firebase.Messaging the auth is null in the code below:
private void InitFirebaseAuth()
{
app = FirebaseApp.Instance;
auth = FirebaseAuth.GetInstance(app);
using (var user = auth.CurrentUser)
{
if (user != null)
{
StartActivity(new Intent(this, typeof(MainActivity)));
Finish();
}
}
}
auth = FirebaseAuth.GetInstance(app) is null, when I uninstall Xamarin.FIrebase.Messaging everything works fine.
I think that there is something with NuGet packages but I can't resolve this problem.
The version of packages like the foto below:
Any help, please?