Can you share some sample of lightning component storing data on device and managing offline ?
-
2If 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 GersicCommented 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
Add a comment
|
1 Answer
You can pretty easily store the results of calls using the cache and Storable within your components.
As you'd imagine, direct access to the cache is in the works: