cordova - localStorage not being persisted in hybrid app in Android M42 -


in latest release of ·android system webview (m42 42.0.2311.129)· there seems issues localstorage in hybrid apps.

i've submitted bug report trying find workaround objects not being persisted in localstorage.

this taken bug report:

steps reproduce problem: 1. start hybrid app built phonegap 2. in app, call javascript localstorage.setitem("m42bug","test localstorage") 3. through developer tools debugging confirm object has been stored: localstorage.getitem("m42bug") 4. close app  (swipe away, force close or restarting device cause same) 5. start app 6. in app, call javascript localstorage.getitem("m42bug") 

what expected behavior?

localstorage.getitem("m42bug") should return value "test localstorage"

what went wrong?

localstorage.getitem("m42bug") returns null.

object.keys(localstorage) indicate there no key m42bug

faced exact same problem. workaround store localstorage data on phone on exit app , restore there on app start. works fine :) hope helps :)


Comments

Popular posts from this blog

python - Installing PyDev in eclipse is failed -

PHP OOP-based login system -

c# - Nested Internal Class with Readonly Hashtable throws Null ref exception.. on assignment -