1. S

    How to increment the value in specific node with firebase realtime database ios

    Here i'm working in a chat application, i want to maintain the unread count for the recipient side. My json structre in console looks like the scope of this question is, how to increment the value of unread_count. Prior incrementing i have the user_a_uuid and the node user_history &...
  2. B

    Updating a List Size for all users

    I am trying to make it so that when a user creates an open game, in my Firebase Database the name of the game is the size of the list. So the very first game created the name of it will = 0, and if another user creates a game then the game will be labeled 1 and so on. I have it set up right now...
  3. A

    Firestore PERMISSION_DENIED on Google Cloud Compute

    I have a Java application using firebase-admin that I'm trying to get to observe a collection in Firestore and act upon modifications to it. I have the following code: final GoogleCredentials credentials = GoogleCredentials .getApplicationDefault(); final FirebaseOptions options =...
  4. J

    Remove Firestore Snapshot Listener From Inside Listener

    Super simple question. I need to remove a firestore snapshot listener once I hit a certain point inside of my listener. Seems like this should be super easy but I can't figure it out. Thanks! Example code: val registration = gameRef.addSnapshotListener { snapshot, e -> //code...
  5. S

    Updating a collection name in Cloud Firestore

    Can we change the name of a collection in Cloud Firestore? I have created a collection with 200 documents. Now I want to change the name of the collection. In the Firebase console, I could not find a way to do this. Is it possible to change a collection's name either through code or in the...
  6. G

    Truy xuất dữ liệu firebase trong javascript trả về object object

    Mình đã cố gắng lấy một số dữ liệu từ firebase bằng javascript. Mình liên tục nhận được kết quả Object Object. đây là code của mình: var notesRef = database.ref('elimio/users/' + userId + '/my-notes'); notesRef.on('value', function(snapshot) { var returnArr = []; var childData =...