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:
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
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:
[BANanoFireStoreDB] - A CRUD Cloud FireStoreDB Wrap for BANano
Ola Download Yesterday I started playing around Google FireStore. This is things I learned. So, you need to log to the console and do the initial setup. There is a Realtime Database (FireBase) and there is a Cloud FireStore. This is about the latter. Cloud Firestore is a flexible, scalable...
www.b4x.com
- Create a new B4J project
- Add the BANano and BANanoFirebaseDB libraries
- 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