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.
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
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 โฆ
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
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
User | Count |
---|---|
33 | |
29 | |
29 | |
20 | |
18 |