javascript - Offline persisting storage in Sencha mobile app -



javascript - Offline persisting storage in Sencha mobile app -

i new mobile app development. creating cross-platform app using sencha + phonegap. goal store user-written text in mobile (offline storage) , other text info related it, persist if mobile restarts, uploaded server, 1 time mobile has connection.

according http://docs.sencha.com/touch/2.3.2/#!/api/ext.data.proxy.proxy sencha provides 2 client side storages.

localstorageproxy - saves info localstorage if browser supports memoryproxy - holds info in memory only, info lost when page refreshed

memoryproxy out of question. , localstorage uses html5 storage , dont believe that lasts after reboot.

so need kind of database, accessible sencha, on both android , ios, in offline mode. there such thing?

your assumption wrong, localstorage persistent between applications restarts , application reboots. maybe confusing sessionstorage? far know, info wiped out if user actively clears application info (for illustration on android application menu).

anyway, since using cordova/phonegap, have these storage options:

localstorage, key/value persistent storage (support table) websql, offers more full-featured database tables accessed via sql queries (android, blackberry 10, ios, tizen). indexeddb, more features localstorage fewer websql (only windows phone , blackberry).

plus use:

filesystem cordova api

javascript cordova sencha-touch-2 persistence local-storage

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -