question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Synchronization issues with Realtime Database and a possible solution

See original GitHub issue

RealtimeDatabase is not receiving streaming events from Firebase except put when a new item is added and keep alive.

So, when an element is edited no notification is received.

A possible fix is to change the line: https://github.com/step-up-labs/firebase-database-dotnet/blob/2392df1860971ff188cce305078f97eb78a91e31/src/Firebase/Offline/RealtimeDatabase.cs#L264

to just:

var query = this.childQuery; 

I suppose the main problem is with the StartAt method which is preventing notifications related to any elements whose key appears before the latest key.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

1reaction
bezysoftwarecommented, Jan 27, 2018

I gave it a quick thought and I agree there should be an option to do what you need. I just pushed a change which allow this - use one of the overloads for AsRealtimeDatabase which will allow you to specify StreamingOptions - and just set it to Everything. That should do the trick.

Here’s the commit https://github.com/step-up-labs/firebase-database-dotnet/commit/05aae6c88d142670ec20605e01f95ab06988180b Nuget will be available once it gets indexed, v3.3.0

0reactions
MathewSachincommented, Jan 27, 2018

Works perfectly. Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Firebase Database Not Syncing Properly
The Firebase Database only synchronizes data while there is an active connection to the server. This normally only happens when the app is ......
Read more >
Firebase Realtime Database
The Firebase Realtime Database is a cloud-hosted database. Data is stored as JSON and synchronized in realtime to every connected client.
Read more >
Optimize Database Performance | Firebase Realtime ... - Google
There are a few different ways to improve Firebase Realtime Database performance in your app. To find out what you can do to...
Read more >
Troubleshoot live synchronization issues - Dual-write
This article provides troubleshooting information that can help you fix issues with live synchronization.
Read more >
DataWorks:Real-time synchronization
Real-time synchronization,DataWorks:This topic provides answers to some frequently asked questions about real-time synchronization.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found