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
mattpopeftusamattpopeftusa 

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
Best Answer chosen by mattpopeftusa
KevinPKevinP
I'm not sure it's working like you think it's working.

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

KevinPKevinP
I'm not sure it's working like you think it's working.

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
 
This was selected as the best answer
mattpopeftusamattpopeftusa
Ah, thanks!  It does look like it's using the MockSmartStore.js file to mimic the functionality:

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.  
Kartik Prajapati 5Kartik Prajapati 5
movierulz-2019-movie-download/ (https://becurious.co.in/movierulz-2019-movie-download/)is one of the best website to download movies online for free.