Hello everybody
I have a little problem,
when I try to use the firebase authentication library
when the program arrives at auth initialization it gives me this error message and exits
java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.firebase.auth.FirebaseAuth.addAuthStateListener(com.google.firebase.auth.FirebaseAuth$AuthStateListener)' on a null object reference
what can it be
Thank you
I have a little problem,
when I try to use the firebase authentication library
when the program arrives at auth initialization it gives me this error message and exits
java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.firebase.auth.FirebaseAuth.addAuthStateListener(com.google.firebase.auth.FirebaseAuth$AuthStateListener)' on a null object reference
what can it be
Thank you
AUTH Firebase:
Sub Activity_Create(FirstTime As Boolean)
If FirstTime Then
auth.Initialize("auth")
End If
Activity.LoadLayout("1")
If auth.CurrentUser.IsInitialized Then Auth_SignedIn(auth.CurrentUser)
End Sub
Sub btnSignIn_Click
auth.SignInWithGoogle
End Sub
Sub btnSignOut_Click
auth.SignOutFromGoogle
lblName.Text = "Goodbye!"
End Sub
Sub Auth_SignedIn (User As FirebaseUser)
Log("SignedIn: " & User.DisplayName)
lblName.Text = "Hello: " & User.DisplayName
End Sub