Welcome to the CSC Q&A.
Get help and give help!
Write great code!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+10 votes

Does anyone have any good tutorials or references for updating data in firebase? I was trying to follow the documentation but I'm having a hard time updating specific fields of data
EDIT: Should have mentioned I'm working in android studio with java

asked in CSC490_Spring202021 by (8 points)
edited by
+1

Do you want tutorials specifically for Android, or any platform? The syntax is fairly similar between, but there are some differences.

+1

I'm mostly looking for android, but I could work on translating them if they aren't

2 Answers

+2 votes

What platform are you trying to connect it to?

answered by (-492 points)
+1

Java in android studio

+2 votes

This one seems to go into some detail with a concrete example for writing and reading and Firebase. The actual Firebase stuff seems to start in step 3 and 4.

https://www.geeksforgeeks.org/how-to-update-data-in-firebase-firestore-in-android/

This one is for javascript if you want to try translating.

https://medium.com/@hasangi/writing-deleting-and-updating-data-in-firebase-realtime-database-with-javascript-f26113ec8c93

And this is one that seems to be for Kotlin, but the syntax is pretty similar to java so it might be easier to translate into java.

https://www.javatpoint.com/firebase-realtime-database-update-and-delete

answered by (8 points)
...