Android Question B4A 7-8beta + Firebase Firestore

DonManfred

Expert
Licensed User
Longtime User
See subject. This is a great COMBO :D

Spoiler:
Please note that there are more than 50 Documents in the collection.
B4X:
        Dim col As CollectionReference = fs.collection("restaurants")
        If col <> Null Then
            'Log(col)
            col.setEventname("Firestore","Restaurants")
            col.orderBy3("numRatings","DESCENDING").whereEqualTo("category","Burgers").limit(3).fetch
           
        Else
            Log("Restaurant-Colletion is null")      
        End If

*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
Firestore_onEvent(com.google.firebase.firestore.QuerySnapshot@f696ee0)
(MyMap) {avgRating=2.5854711611344063, price=3, numRatings=19, category=Burgers, city=Portland, name=Foo Eatery, photo=https://storage.googleapis.com/firestorequickstarts.appspot.com/food_10.png}
(MyMap) {avgRating=2.342525567779633, price=1, numRatings=19, category=Burgers, city=Boston, name=Bar Restaurant, photo=https://storage.googleapis.com/firestorequickstarts.appspot.com/food_6.png}
(MyMap) {avgRating=3.086751562646601, price=3, numRatings=10, category=Burgers, city=Charlotte, name=Sam's Drive Thru, photo=https://storage.googleapis.com/firestorequickstarts.appspot.com/food_8.png}
** Activity (main) Pause, UserClosed = false **

I´m positive to get the Query working in Firebase Realtime Database too NOW. :)
 
Last edited:

JMB

Active Member
Licensed User
Longtime User
Hi there Don,

Is this something you're working on now? I am very keen to use the Firebase stuff with B4A, but is this a product that you're working on now for release?

Thanks for your help.

JB
 
Upvote 0
Top