B4A Library FirebaseAuth - Authenticate your users

Status
Not open for further replies.

Antonio Di Chiano

Member
Licensed User
Hi everyone, I need help from anyone, I have follow the istruction but i have an error into running phase:
---------------------------------------------------------------------------------------------------------------------------------------------------------
java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process it.uppeee.uppeee. Make sure to call FirebaseApp.initializeApp(Context) first.
---------------------------------------------------------------------------------------------------------------------------------------------------------

I don't understand where the problem is, I am a beginner with B4A, I need someone who has patience with inexperienced people like me. Thank you
 

metzeller_2013

Member
Licensed User
Longtime User
Is there a way for Email and Password Authentication in Firebase? Trying to use email and password auth with firebase storage.
 

Angel Garcia

Member
Licensed User
Is there a way for Email and Password Authentication in Firebase? Trying to use email and password auth with firebase storage.

This library don't support email, but the way i do it is with the firebase .Net library, just prepare a web page that receives the request after you confirm the email (with a code confirmation), and process the register with the email and update your database.
Regards,
 

Alexander Stolte

Expert
Licensed User
Longtime User
Is there a way for Email and Password Authentication in Firebase?
+
 

Ong Beny Hinadrayanto

Member
Licensed User
Please help i got this error when i build a sample. thanks

Logger connected to: Xiaomi Mi A2 Lite
--------- beginning of main
Copying updated assets files (2)
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
Error occurred on line: 27 (Main)
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
at anywheresoftware.b4a.objects.FirebaseAuthWrapper.Initialize(FirebaseAuthWrapper.java:73)
at com.pijakpijak.firebase.main._activity_create(main.java:394)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:351)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
at com.pijakpijak.firebase.main.afterFirstLayout(main.java:105)
at com.pijakpijak.firebase.main.access$000(main.java:17)
at com.pijakpijak.firebase.main$WaitForLayout.run(main.java:83)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6694)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
** Activity (main) Resume **
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…