Alex Guerrero Member Licensed User Longtime User Apr 19, 2018 #1 Hello, I am testing the example of Firebase Realtimedatabase and I have the following error, please can you help me, thanks in advance. Can you help me with the method : Initialize, which would be the correct parameters according to my structure. Code: Copy Dim ref As DatabaseReference ref.Initialize("Reference",realtime.getReferencefromUrl("https://tu.garage.com-8b2a8.firebaseio.com/") ,"midata") Perform the installation according to https://www.b4x.com/b4a.html#installation I have Win 7, B4A 8.0, Java 1.8.0_161, android-27 I install android with Sdk Manager, as you recommend it I have enabled permissions in firebase Text translated with google. Last edited: Apr 21, 2018
Hello, I am testing the example of Firebase Realtimedatabase and I have the following error, please can you help me, thanks in advance. Can you help me with the method : Initialize, which would be the correct parameters according to my structure. Code: Copy Dim ref As DatabaseReference ref.Initialize("Reference",realtime.getReferencefromUrl("https://tu.garage.com-8b2a8.firebaseio.com/") ,"midata") Perform the installation according to https://www.b4x.com/b4a.html#installation I have Win 7, B4A 8.0, Java 1.8.0_161, android-27 I install android with Sdk Manager, as you recommend it I have enabled permissions in firebase Text translated with google.
Alexander Stolte Expert Licensed User Longtime User Apr 19, 2018 #2 I recommend you to watch my tutorial to understand how the RealTime Database works. This Tutorial includes: -create rooms -send messages to it with this knowledge you can start. Upvote 0
I recommend you to watch my tutorial to understand how the RealTime Database works. This Tutorial includes: -create rooms -send messages to it with this knowledge you can start.
Alexander Stolte Expert Licensed User Longtime User Apr 19, 2018 #3 and in this tutorial i explain how to get the last message in the database. After this Tutorial you know how to get values from the database to your phone. Upvote 0
and in this tutorial i explain how to get the last message in the database. After this Tutorial you know how to get values from the database to your phone.
DonManfred Expert Licensed User Longtime User Apr 19, 2018 #4 Alex Guerrero said: I install android with Sdk Manager, as you recommend it Click to expand... Can you please post a Screenshot from the B4A SDK Manager? Post a Screenshot of your Paths in B4A too -> Tools Configure Paths Upvote 0
Alex Guerrero said: I install android with Sdk Manager, as you recommend it Click to expand... Can you please post a Screenshot from the B4A SDK Manager? Post a Screenshot of your Paths in B4A too -> Tools Configure Paths
Alex Guerrero Member Licensed User Longtime User Apr 19, 2018 #5 I have solved in part by adding the following lines. Code: Copy #AdditionalRes: ..\resource #AdditionalJar: com.android.support.constraint:constraint-layout #AdditionalJar: com.google.android.gms:play-services-base #AdditionalJar: com.google.firebase:firebase-core #AdditionalJar: com.google.firebase:firebase-database My specific question is what is the correct way to initialize "DatabaseReference": 2 or 3 parameters and please expand the description if possible of the parameters. In the same way, which is the best way to refer to the database with "FirebaseDatabase". Sorry but I have problems with understanding the connection to a BD NoSQL. Attachments resource.zip resource.zip 4.7 KB · Views: 550 rutas_b4x.jpg 45.9 KB · Views: 619 SDK_B4x.jpg 72.9 KB · Views: 587 Upvote 0
I have solved in part by adding the following lines. Code: Copy #AdditionalRes: ..\resource #AdditionalJar: com.android.support.constraint:constraint-layout #AdditionalJar: com.google.android.gms:play-services-base #AdditionalJar: com.google.firebase:firebase-core #AdditionalJar: com.google.firebase:firebase-database My specific question is what is the correct way to initialize "DatabaseReference": 2 or 3 parameters and please expand the description if possible of the parameters. In the same way, which is the best way to refer to the database with "FirebaseDatabase". Sorry but I have problems with understanding the connection to a BD NoSQL.
Alexander Stolte Expert Licensed User Longtime User Apr 19, 2018 #6 just look into the 2 tutorials, the structure is the same ... Upvote 0
DonManfred Expert Licensed User Longtime User Apr 19, 2018 #7 Alex Guerrero said: My specific question is what is the correct way to initialize "DatabaseReference" Click to expand... As you are using the json file from firbase your app already know the Database. You just can use Code: Copy Dim servicio As DatabaseReference servicio.Initialize("servicio",realtime.getReference2("servicio/"),"servicio/") "servicio" is the Event-Prefix for the Events The 1st "servicio/" is the Path you want to get The 2nd is a Tag which you can use Upvote 0
Alex Guerrero said: My specific question is what is the correct way to initialize "DatabaseReference" Click to expand... As you are using the json file from firbase your app already know the Database. You just can use Code: Copy Dim servicio As DatabaseReference servicio.Initialize("servicio",realtime.getReference2("servicio/"),"servicio/") "servicio" is the Event-Prefix for the Events The 1st "servicio/" is the Path you want to get The 2nd is a Tag which you can use