Skip to content

FireStore Realtime functionality #2577

Description

@Klabauterman

I would like to know if there is FireStore realtime functionality like in the android SDK is planned. The old firebase admin SDK had it.

Thanks in advance.

Activity

  1. Mistic92 commented on Nov 7, 2017

    @Mistic92

    Firestore is not realtime database. You can still use realtime database and firestore.

  2. Klabauterman commented on Nov 7, 2017

    @Klabauterman
    Author

    But the Firestore client-SDKs for web, android and ios support data listeners: https://firebase.google.com/docs/firestore/query-data/listen

  3. added
    api: firestoreIssues related to the Firestore API.
    type: questionRequest for information or clarification. Not an issue.
    on Nov 8, 2017
  4. self-assigned this
    on Nov 8, 2017
  5. anthmgoogle commented on Nov 8, 2017

    @anthmgoogle

    We will confirm with the Firestore product team. Taking this until I find the right contact.

  6. schmidt-sebastian commented on Nov 9, 2017

    @schmidt-sebastian
    Contributor

    This is on the roadmap for the rest of the Server SDKs. It's already available in Node. Stay tuned!

  7. Klabauterman commented on Nov 11, 2017

    @Klabauterman
    Author

    Cool, thanks 👍

  8. mataide commented on Nov 14, 2017

    @mataide

    Hey guys, probably not the best place to ask, but I am also trying to implement listen in a Java Project. I am trying to set this up with REST API. Does anyone knows a valid object for it?

    I just tried:

    {
     "addTarget": {
      "targetId": "alovelace",
      "once": false,
      "documents": {
       "documents": [
        "room"
       ]
      },
      "query": {
       "structuredQuery": {
        "from": [
         {
          "collectionId": "room"
         }
        ]
       }
      }
     }
    }
    

    Whenever I try, always get:

    {
     "0": {
      "error": {
       "code": 400,
       "message": "Invalid value (Object), ",
       "status": "INVALID_ARGUMENT",
       "details": [
        {
         "@type": "type.googleapis.com/google.rpc.BadRequest",
         "fieldViolations": [
          {
           "description": "Invalid value (Object), "
          }
         ]
        }
       ]
      }
     }
    }
    
  9. schmidt-sebastian commented on Nov 14, 2017

    @schmidt-sebastian
    Contributor

    Please take a look at the Node API and turn on logging to see a dump of the request trace:

    Firestore.setLogFunction(console.log)
    

    That might help you.

  10. mataide commented on Jan 17, 2018

    @mataide

    The documentation still not yet updated. https://firebase.google.com/docs/firestore/query-data/listen
    Have anyone tried how to implement this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

api: firestoreIssues related to the Firestore API.type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions