7

Can you share some sample of lightning component storing data on device and managing offline ?

2
  • 2
    If you're doing a standalone app with a SDK-based wrapper, I think it would be possible to do with Application Cache manifest files, but I haven't seen any examples of doing this yet.
    – Tom Gersic
    Commented Jan 9, 2015 at 16:14
  • I agree with Tom. Lightning is inherently a client-side, browser-based framework. To access local files on a physical device would require a native container for iOS, Android or whatever other platform.
    – Marty C.
    Commented Jan 10, 2015 at 20:39

1 Answer 1

1

You can pretty easily store the results of calls using the cache and Storable within your components.

https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/controllers_server_storable_actions.htm

As you'd imagine, direct access to the cache is in the works:

Aura Storage service usage

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .