Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GroundDB doesn't sync data to live server when getting online again after a while #214

Open
Jessedev1 opened this issue May 13, 2022 · 3 comments
Labels

Comments

@Jessedev1
Copy link

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

  1. I turn off the wifi on my phone
  2. I do a database update
  3. 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?

@boomfly
Copy link

boomfly commented Oct 8, 2022

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

@paranoico
Copy link
Contributor

@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.

@StorytellerCZ
Copy link
Member

Can you please check with v2.1.1, it fixed #220 which could have been related.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants