Cannot sync pictures after appsheet is closed

Hi,

Good day!

I have a sync problem. My app involves taking pictures offline then syncing the app by the end of the day or the next day when online. But when the app is closed or during restart of the phone, the pictures will not get synced but other data (not pictures) don’t have any problems. Do you know a solution to this?

Thanks!

There are some special considerations for Images that need to be taken when working offline. See if this article can help answer your questions.

1 Like

Ahh I see. The article said that I should enable offline content caching, will this solve the issue if the phone is restarted? Thanks!

You probably have already tried this out. But you should not need to ever restart the phone. Worst case would be to shut down the app and then re-launch it.

So I’m curious, did you try out the offline caching for Images and did it work for you?

Now I see, there are some bugs when I start the app like it just sticks in the loading screen so my solution would be to just restart the app.

I haven’t tried to do the offline caching for Images as I am not much of a cellphone expert. But I think this will work for me but I don’t know how to do it yet :slight_smile:

Offline caching is controlled by simply changing settings within your app. You can find these under the Behavior section - Offline/Sync tab. See the image below. It might also be worthwhile to checkout the other options listed there to see if they might be helpful in your app.

I have problems with offline cache with images:

https://community.appsheet.com/t/possible-bug-cache-offline-content-vs-security-filter/15836/2

@jader_james I read your post and provided an article that might be useful when storing images along with a relational DB.

While, I am certainly not proficient in this area, I have used an SQL db in apps with images. However, I always allow the images to be stored on Google Drive. I have not seen any issues with this approach. It has been months since I used the SQL based app as I have building up a new app. Things could have changed.

I have built several apps against Google with offline caching and have not noticed any issues in those applications. Though my volume of images is not high - couple hundred maybe.

My images are stored in a S3 bucket (aws file system) that is less expensive than save a lot of files in SQL, I am a database administrator, SQL is my life :joy::joy::joy:

My problem is caused by intermittent behavior on security filter + offline caching

Thank you so much for your info @John Baer. You’re a great help :smiley:

1 Like

My problem isn’t security filter…I removed it and the problem with images continue…the data is synced but the images are not sent to aws s3 and desappear from my app…I only can see a large number of rows in my app and my database for “photos”…but all filled with url “” (empty)…I was using delayed sync and uploading a large number of images hours after save data offline, with offline content enabled…and the images desappeared…then…maybe because timeouts and large number of images or other situations…I can’t see the problem and I will change the sync behavior to sync in all moments in background…but this is not my desire…maybe the app can’t scale without a business plan I don’t know what’s is happening…I will try to make the thing different with sync/offline behavior that I don’t desire only for the app function normally

I would recommend to send you issue to support@appsheet.com

They will likely be able to give you better direction on how to resolve your issue.

Thanks…I will but I am looking if there are problems with samsung camera + appsheet