i was able to add a solution for the login (sucess or not) but the createnew user will raise an exception if there is already such a user... I can´t find a fix to get the error message
** Service (starter) Create **
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
btnSignInwithEmailandPassword_Click()
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
signInWithEmailnComplete: false
TaskIncomplete
Result received
onFailure: Exception raised
com.google.firebase.auth.FirebaseAuthInvalidCredentialsException: The password is invalid or the user does not have a password.
anon_SignedIn(false,Login Unsuccessful)
anon_SignedIn(false,com.google.firebase.auth.FirebaseAuthInvalidCredentialsException: The password is invalid or the user does not have a password.)
Sub btnSignInwithEmailandPassword_Click
Log($"btnSignInwithEmailandPassword_Click()"$)
'anon.createUserWithEmailAndPassword("msy@gmx.de","kallekalle")
anon.SignInWithEmailAndPassword("email","wrongpassword")
End Sub
Sub anon_SignedIn (success As Boolean, User As FirebaseAuthUser, info As String)
Log($"anon_SignedIn(${success},${info})"$)
If success Then
If User = Null Then
Log("nulluser SignedIn: ")
Else
Log("SignedIn: " & User.Uid)
Log("User: " & User.DisplayName)
Log("eMail: " & User.Email)
Log("Anonymously: " & User.Anonymous)
Log("Email verified: " & User.EmailVerified)
If User.EmailVerified = False Then
'Log("Email verification request")
'User.sendEmailVerification
End If
End If
Log("SignedIn: " & User.DisplayName)
[...]
End sub
I´m using v1.14
you should not try to catch it... the workaround will not work in try catch block i guess
Are the maven-repositories uptodate (41 is most uptodate)? It the only i think what could be the problem
hmmm... and you are using V1.14 of my lib?Yes maven-repositories is uptodate.
com.google.android.gms.internal.zzafs@e1e82ab
com.google.android.gms.internal.zzafs@a0fed08
The values are not public. I cant help here, sorry.How can I access the actual data values from these object references?
hi,Worked. Thank you.
New effect while trying to "SignUp" a new eMail user:
B4X:Dim authx As FirebaseAuthEx '... authx.Initialize("authx") '... Sub button_sign_up_Click authx.createUserWithEmailAndPassword("myemail@providerxy.com", "foo123") End Sub Sub authx_UserCreated(User As FirebaseAuthUser) ' <--tried also "FirebaseUser", but that type misses: .Anonymous, .EmailVerified, .ProviderData, .ProviderId, .Providers '... throws error message (see below) End Sub
B4X:java.lang.Exception: Sub authx_usercreated signature does not match expected signature. at anywheresoftware.b4a.BA.raiseEvent2(BA.java:171) at anywheresoftware.b4a.BA$2.run(BA.java:328) at android.os.Handler.handleCallback(Handler.java:751) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6077) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
hi,I´m using v1.14
B4X:Sub btnSignInwithEmailandPassword_Click Log($"btnSignInwithEmailandPassword_Click()"$) 'anon.createUserWithEmailAndPassword("msy@gmx.de","kallekalle") anon.SignInWithEmailAndPassword("email","wrongpassword") End Sub Sub anon_SignedIn (success As Boolean, User As FirebaseAuthUser, info As String) Log($"anon_SignedIn(${success},${info})"$) If success Then If User = Null Then Log("nulluser SignedIn: ") Else Log("SignedIn: " & User.Uid) Log("User: " & User.DisplayName) Log("eMail: " & User.Email) Log("Anonymously: " & User.Anonymous) Log("Email verified: " & User.EmailVerified) If User.EmailVerified = False Then 'Log("Email verification request") 'User.sendEmailVerification End If End If Log("SignedIn: " & User.DisplayName) [...] End sub
Hi,And Please check the " AuthEx_UserCreated " EVENT . when you create new user by " createUserWithEmailAndPassword " Function , The Event for UserCreated NOT work correctly .
Cheers Man
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?