B4J Question Question with Firebase

Reinierus

Member
Licensed User
Longtime User
Hello @Mashiane

I need to make a desktop app to manage some data of an android app.
As I can see, this is one way to made it:
I not an expert and I don't have time to explore all details of B4J and all of its components, so going to the basics, I think the basic way to connect to my FireStore DB (I already have one with some data) is:
  1. Create a new B4J project
  2. Add the BANano and BANanoFirebaseDB libraries
  3. Put this lines into the AppStart sub:
Start Lines:
Private fb As BANanoFireStoreDB
Private BANano As BANano
fb.Initialize
    'use my credentials
    fb.apiKey = "AIzaSyDBijdfdG3KPx7qd5-jDGrRNr2RRXWS57o"
    fb.authDomain = "fbtests-f9490.firebaseapp.com"
    fb.databaseURL = "https://fbtests-f9490.firebaseio.com"
    fb.projectId = "fbtests-f9490"
    fb.storageBucket = "fbtests-f9490.appspot.com"
    fb.messagingSenderId = "905575318254"
    fb.appId = "1:905575318254:web:fb5c35cdc13288aeb329ff"
    fb.measurementId = "G-41GS0509JY"
    fb.timestampsInSnapshots

    fb.connect

4. Use the subs to read and write data into the database

If I try it, I get an error, so I am missing some steps (also there is two fb parameters that I don't know where can I get)
Please help me, you already knows how to do it and it sounds simple for you.

Thank you
 

EnriqueGonzalez

Well-Known Member
Licensed User
Longtime User
Banano is not a Desktop library, Banano works with (i guess) CLI and server projects.

I dont think there is a way to connect from b4j to firebase with a wrapped SDK like with android, you could try to use the API or wrap a library
 
Upvote 0
Top