ground-db
ground-db copied to clipboard
GroundDB doesn't sync data to live server when getting online again after a while
Hi,
Since we updated to a newer Meteor version (1.8 > 2.5) we are having problems with our app running offline.
I've tested the following
- I turn off the wifi on my phone
- I do a database update
- I turn my wifi back on
When i do this right after each other everything works fine, but when I wait a couple of minutes (30 minutes) before turning my wifi back on the data won't be updated.
Do you have an idea of what is going on and how to fix this?
After some time Meteor stop trying to reconnect, so you should listen some sort 'internetAvailable' event and manually call Meteor.reconnect or check connection status and show user button with reconnect function
@Jessedev1 We still use these component: Auto reconnect
As far as i know, Meteor reconnection uses a longer wait time after each failed attempt ("2 power n" seconds or something like that). So we configured the component with a 5 or 10 seconds timing in order to avoid long pause waiting.