Will Firebase Realtime Database Sync When The Device Comes Online, But The Application Is Not Opened?
I am trying out Firebase Realtime Database. I have a created a node users, In that I have created a node user_1. The JSON is like the one below { 'user_1' : { 'firstName' : '
Solution 1:
When you call keepSynced(true)
, the Firebase Realtime Database client synchronizes the data at that location while your app is active.
If you force-kill the app, the client will not be active anymore and it won't synchronize anymore.
It may continue to synchronize for a while when your back goes into the background. Whether it does this and for how long depends on the Android version and device manufacturer. Given their efforts to reduce background data usage (to improve battery life), I'd recommend not relying on this.
Post a Comment for "Will Firebase Realtime Database Sync When The Device Comes Online, But The Application Is Not Opened?"