Skip to content

Long-term Realtime Database connection with ChildListener #38

@mrnrone

Description

@mrnrone

Please fill in the following fields:

Pre-built SDK from the website
Firebase C++ SDK version: 6.8.0
Firebase plugins in use (Auth, Database, etc.): App, Auth, Realtime Database
Additional SDKs you are using (Facebook, AdMob, etc.): Qt 5.12.5
Platform you are using the C++ SDK on (Mac, Windows, or Linux): Windows 10
Platform you are targeting (iOS, Android, and/or desktop): Desktop

Please describe the issue here:

  1. Sign-in existing user with Auth (email + password)
  2. Get database reference for a selected root node
  3. Add ChildListener to this node
  4. Desktop application is running: ChildListener is triggered for every child nodes
  5. Add some child node from a mobile application: ChildListener is triggered for every new child nodes
  6. Both mobile and desktop applications are running for more than 1 hour in "idle state". (always connected, no sleep mode, no new child nodes are being sent from mobile app)
  7. Add some new child node from a mobile application: these nodes can be shown in Firebase web console but ChildListener is NOT triggered anymore on desktop! Re-login and new database reference is required in order to get them.

Q: What is the best practice to always get the new child nodes on desktop? How long is the connection alive?

Please answer the following, if applicable:

Have you been able to reproduce this issue with just the Firebase C++ quickstarts ?
Did not tried.

What's the issue repro rate? (eg 100%, 1/5 etc)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions