RayKaZe / CATS

2 stars 0 forks source link

Use permanent storage on phone with javascript to backup card entries #25

Open LiyouZhou opened 8 years ago

LiyouZhou commented 8 years ago

new sdk allows permanent storage on the phone using javascript

http://www.w3schools.com/html/html5_webstorage.asp

jgillard commented 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

LiyouZhou commented 8 years ago

when watch resets is a good usecase. This happened to me a few times, when I reinstalled the app, all cards are lost.