Synchronization issues with Realtime Database and a possible solution
See original GitHub issueRealtimeDatabase
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:
- Created 6 years ago
- Reactions:1
- Comments:5
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 specifyStreamingOptions
- and just set it toEverything
. 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
Works perfectly. Thank you!