Android Question Problem with FirebaseAuth

musaso

Active Member
Licensed User
When using FirebaseAuth
B4X:
auth.Initialize ("Auth")

does not raise the event
B4X:
Sub Auth_SignedIn (User As FirebaseUser)

The log
B4X:
onAuthStateChanged: com.google.firebase.auth.internal.zzl@1ad41a62
and nothing more
 

musaso

Active Member
Licensed User
Thank you Brandsum made the change but without result.
I put simple project.
 

Attachments

  • FirebaseAuth.zip
    12.4 KB · Views: 185
Upvote 0

Brandsum

Well-Known Member
Licensed User

Attachments

  • FirebaseAuth_modified.zip
    11.8 KB · Views: 202
Upvote 0

musaso

Active Member
Licensed User
Thanks for answering Erel.
App log when launching and pressing button sign in with google.


B4X:
Registo conectado a: 2aea54989805
--------- beginning of crash
--------- beginning of system
--------- beginning of main
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
onAuthStateChanged: com.google.firebase.auth.internal.zzl@ff83853
SignInWithGoogle called
** Activity (main) Pause, UserClosed = false **
sending message to waiting queue (OnActivityResult)
running waiting messages (1)
SignInWithGoogle.ResultArrived
ResultArrived Error: Status{statusCode=unknown status code: 12500, resolution=null}, null
 
Upvote 0

musaso

Active Member
Licensed User
I have always used FirebaseAuthEx in my Apps without problems but since updating to AndroidX I have problems with Firebase, not with authentication (Anonymous works fine) but not FirebaseRealtimeDatabase and Firestore events.
I have observed that using FirebaseAuth worked fine one day, but it has inexplicably stopped working.
onAuthStateChanged: com.google.firebase.auth.internal.zzl@ff83853 and I can't authenticate
 
Upvote 0

musaso

Active Member
Licensed User
No users


Firebase console.png

Same message ....
 
Upvote 0

Brandsum

Well-Known Member
Licensed User
Check the SHA1 key again because a few days ago I saw that different SHA1 is showing for the same keystore file in different machines. So I had to put all SHA1 to Google Signin option.
 
Upvote 0

musaso

Active Member
Licensed User
Created a new Firebase project, with a new package name,
created a new b4a project but I have the same result:

onAuthStateChanged: com.google.firebase.auth.internal.zzl@2e0c81b4

I've been with this for several days, I'm desperate.
 
Upvote 0
Top