Open LiyouZhou opened 8 years ago
Initial thoughts:
This makes minimal use of localStorage.
The opposite of this is do most of the work in localStorage, and then only sync back to watch on config page submit. i.e. not download from watch at all. Needs #7 and #8 closed for consideration of this method.
https://developer.getpebble.com/guides/pebble-apps/pebblekit-js/js-capabilities#storing-data
when watch resets is a good usecase. This happened to me a few times, when I reinstalled the app, all cards are lost.
new sdk allows permanent storage on the phone using javascript
http://www.w3schools.com/html/html5_webstorage.asp