function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
er.rajhanschaubeyer.rajhanschaubey 

Offline Image upload in salesforce mobile app.

I am trying to build a hybrid application on mobile using salesforce application. I want to upload images to s3 also. If network is not available all images and data will be saved in offline cache and once n/w available images should sync with aws 3 and data with salesforce. Any idea how to move ahead on this? will it be possible with Salesforce hybrid app or not?
bob_buzzardbob_buzzard
This is possible, but you'll have to write a lot of code I'd imagine.   Saving data offline can be achieved using the Salesforce smartstore functionality:

https://developer.salesforce.com/page/Developing_Offline_Apps_with_SmartStore

Synching images is a different matter - I think you'll need to use a cordova for this.  I've used the techiques outlined in Raymond Camden's blog series for this in the past :

http://www.raymondcamden.com/2012/1/19/Downloading-files-to-a-PhoneGap-application--Part-1