🔥 Firestore using the Web and WebViewer Components in App Inventor

Firestore-logo-vector-01

It has taken me a while to get around to this, but here we have it, a primer in using Firestore with AppInventor (no extensions required)

11 Likes

What a guide !!! Amazing...

You are making works simpler.. but this guide, ohhhhhh. I desperately need sometime to understand the whole.. big thanks to you.. take my love @TIMAI2

:heart: :heart:

3 Likes

Awesome Guide!! Very helpful.

2 Likes

hey @TIMAI2 where can i get message id??

timu

I save data like this and i want to change the name

what should be written in pathToField after chats/chatroom/Name/

You get Firestore to generate an autoID when you create the message:

Note there is no entry after messages/

Then you can get messages using a query, which will provide you with the message ID so that you can then edit the fields within it.

1 Like

Is that must to create sub-collection(messages) to make field editable??


this is my firestore table structure with no sub collection. just collection(chats) and doc(chatroom)...........but i want to edit the field called Name part without Document Id, does it possible??

In your case, your messageId is chatroom. You have not gone far enough down the chain to create a specific message ID, e.g. like msg1

chats > chatroom > fields

possibly needs to be

chats > chatroom > msg1 > fields

Finally i got why the problem happened, kodular has not PATCH block so there must be some adjustment on the Web header to use POST

2 Likes

Well done, I have added this to the guide.

1 Like