You need to sign in to do that
Don't have an account?
mattpopeftusa
smartsync for offline access in HTML5 application
Hello, I'm seeing a lot here in the forum and in Salesforce documentation about offline (store and sync) functionality not being available in HTML5 mobile applications using the API unless they are hybrid mobile apps.
However, this example application written using only HTML5 techology provides just that:
https://github.com/ForceDotComLabs/mobile-ui-elements
Example running on Heroku here: https://sfdc-sobject-editor.herokuapp.com/
The documenation for this application says it uses smartsync and smartstore for secure offline storage and sync but like I said I've seen everywhere else that this isn't possible. Can someone provide some insight on this?
Thanks
However, this example application written using only HTML5 techology provides just that:
https://github.com/ForceDotComLabs/mobile-ui-elements
Example running on Heroku here: https://sfdc-sobject-editor.herokuapp.com/
The documenation for this application says it uses smartsync and smartstore for secure offline storage and sync but like I said I've seen everywhere else that this isn't possible. Can someone provide some insight on this?
Thanks
Digging into this app's java script and resources, I found that it's using session storage as a mock storage adapter for smart store. I think the need for a hybrid app is the ability to write data to disk on the device. This app is not writing to disk, just the in memory session cache
All Answers
Digging into this app's java script and resources, I found that it's using session storage as a mock storage adapter for smart store. I think the need for a hybrid app is the ability to write data to disk on the device. This app is not writing to disk, just the in memory session cache
https://github.com/ForceDotComLabs/mobile-ui-elements/search?utf8=%E2%9C%93&q=MockSmartStore (https://github.com/ForceDotComLabs/mobile-ui-elements/search?utf8=%E2%9C%93&q=MockSmartStore)
More info on that here: https://developer.salesforce.com/docs/atlas.en-us.mobile_sdk.meta/mobile_sdk/offline_mockstore.htm
Thank you again KevinP for clearning this up.