Open ujwal-setlur opened 7 years ago
Asking similar question Can data be refreshed in a background timer, sort of waking up the app in the background ?
As i know, device will kill app after period of time. So when app back from background or open, we should call sync method to update last changed data.
How about react-native-background-task? All you have to do is to ensure connection to Meteor (Meteor.reconnect()
) and execute your background data sync. Didn't test it, but it should work.
@joaopiopedreira Sorry, may be a naive question - how can we reconnect to Meteor server while it is disconnected?
Does react-native-meteor work with maintaining a subscription when the app moves to the background? In my case, subscription seems to get refreshed only when app comes back into foreground.