I’m making a Chat App. I already looked through popuar lnks on the discussion already and none really touch on my problem so I’d like to put it here for some help.
Basically, theres 2 apps. Student App and Teacher App. Students have assigned techers through Firebase and vice versa for teachers. The problem is that when a message is sent, it is not appending to the Firebase and therefore not showing in the sutdent’s App, or even at all in the firebase. yet when I make edits in the firebase myself and add/remove messages, it shows in both apps. I’ll send pics of what I’ve done below and a Pic of my firebase part thats relevant.
Both have generally the same Code because the Firebase is shared. just that its not appending to the databse is the main issuse. None of the guides on the community thing or online show how t properly work around with the firbse databse,
So yeah. if any other info is needed would be nice. I don’t wanna redo it from stratch because i put alot of work into it and this is just a single issuse that i’ve spent like a week on. Help would be appreciated
No no, you did well to set it up directly in the designer, but what does global studentID contain? Just ‘student001’?
The path must be yourProjectBucket/messages/student001
I’m tryna understand this before I do it.
Why do have that variable “messageNumber”? when a new thing is appended does it not automatically increase the numbers and make a new one? or do i need to set up a loop/logic to increase and add the message number for each value stored?
Sorry, I was out and couldn’t answer well on the phone, I found a solution for you .
Since each firebase.dataChanged returns all the data from the bucket, you can simply save the list, use add item to list, and send back the entire node with the added data.
Plus, there are no annoying double quotation marks.