Page 1 of 1

Data not syncing with database

Posted: Mon Feb 19, 2018 6:31 pm
by Ellen Schlechter

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?


Data not syncing with database

Posted: Tue Feb 20, 2018 9:49 am
by Serhii Kulibaba

Hello Ellen,

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


Data not syncing with database

Posted: Tue Feb 27, 2018 2:40 am
by Ellen Schlechter

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.


Data not syncing with database

Posted: Tue Feb 27, 2018 4:02 pm
by Serhii Kulibaba

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


Data not syncing with database

Posted: Wed Feb 28, 2018 3:55 pm
by Ellen Schlechter

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


Data not syncing with database

Posted: Thu Mar 01, 2018 7:52 pm
by Serhii Kulibaba

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


Data not syncing with database

Posted: Thu Apr 12, 2018 3:38 pm
by Ellen Schlechter

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.


Data not syncing with database

Posted: Mon Apr 16, 2018 3:53 pm
by Serhii Kulibaba

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.