Reputation: 212
I am using ionic 3 and cloud firestore.
I have enabled persistance data for offline capability.
The data is syncing when the app is open.
But the data is not syncing when the app is closed.
Any idea?
Upvotes: 0
Views: 260
Reputation: 599706
That sounds like the expected behavior to me. When the app is not actively being used, the OS typically turns off most of its resource consumption.
If you want to maintain data sync while the app is closed, have a look at Ionic background tasks, or consider using Firebase Cloud Messaging to send messages to the app for important events. The latter is by far preferred, since it is likely to reduce battery and data consumption by the app while backgrounded.
Upvotes: 1