Android Question Firebase realtime database issue.

Paolodc

Member
I have two realtime databases with firebase but only the default one works. In other words, with this method bellow I can use only the default database.
B4X:
reference.Initialize("reference",  realtime.getReferencefromUrl(link&"genereteTag_Request"), "")

Is here one way to select differente database references with "getReferenceFromUrl"?

Because I have an error:

com.google.firebase.database.DatabaseException: Invalid URL (https://*******-*******-server-actions.europe-west1.firebasedatabase.app/genereteTag_Request) passed to getReference(). URL was expected to match configured Database URL: https://*******-*******-default-rtdb.europe-west1.firebasedatabase.app
at com.google.firebase.database.FirebaseDatabase.getReferenceFromUrl(FirebaseDatabase.java:214)
at de.donmanfred.FirebaseDatabaseWrapper.getReferencefromUrl(FirebaseDatabaseWrapper.java:54)
at com.TimeStudio.ChatSaving.main._btnready_click(main.java:699)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:213)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:197)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:193)
at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:80)
at android.view.View.performClick(View.java:7192)
at android.view.View.performClickInternal(View.java:7166)
at android.view.View.access$3500(View.java:824)
at android.view.View$PerformClick.run(View.java:27592)
at android.os.Handler.handleCallback(Handler.java:888)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:213)
at android.app.ActivityThread.main(ActivityThread.java:8178)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1101)
 
Top