Ellen Schlechter
Posts: 0
Joined: Sun Aug 31, 2014 3:28 am

Data not syncing with database

I am using the Appery.io database and API Express to save records offline. I am not having any trouble getting the records to save locally but sometimes they do not sync up with the database. They are still on the device but after waiting for 24+ hours, they still haven't come through. I've tried logging out of api express then back in, shutting down the app then reopening, switching to airplane mode then back out of it but I haven't had any luck.

Any ideas on what could be going on or who to manually make it sync?

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Data not syncing with database

Hello Ellen,

You can re-sync it: https://docs.appery.io/docs/apiexpres...
or run the goOffline/goOnline functions on events "offline" and "online"

Ellen Schlechter
Posts: 0
Joined: Sun Aug 31, 2014 3:28 am

Data not syncing with database

Thank you for the advice.

It has now come to my attention that I have more users experiencing this issue. Any idea why this could be happening? I changed nothing on my end. I will have the option to manually sync, but I also need to prevent this from happening.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Data not syncing with database

Did it work fine before? The backend wasn't changed, so something was done on the application side

Ellen Schlechter
Posts: 0
Joined: Sun Aug 31, 2014 3:28 am

Data not syncing with database

I did work fine before but nothing changed on the application side either.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Data not syncing with database

Please try to debug your app remotely using Weinre debugger (https://docs.appery.io/docs/weinre-de...).

Please check if there are any errors in the Weinre console.

You don't need to disable the internet connection, just run the sync manually to test it

Ellen Schlechter
Posts: 0
Joined: Sun Aug 31, 2014 3:28 am

Data not syncing with database

I am still having a little trouble with this. The manual sync doesn't seem to sync it like it should.

It seems like the app just gets caught in an offline mode. I tried running the go online and offline functions but that doesn't seem to bring it out.

The issue is tricky to test because I can't reproduce it, but I have had a substantial amount of users who report that their data isn't syncing between all of their devices.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Data not syncing with database

Hello Ellen,

Please try to find steps to reproduce it on your applicaion, or create a sample app with the data sync function. In that case we will have an opportunity to check what exactly goes wrong there.

Return to “Issues”