Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Contributor
sergiop
Posts: 23
Registered: ‎04-13-2012
My Device: Curve 9300 OS6
My Carrier: None

Curve 9300 OS6 localstorage resets on power failure

Hi all, I'm developing a WebWorks app for OS6 and on my Curve 9300 the localstorage is beeing cleared on battery changes or power failures. Shouldn't localstorage persist no matter what? (Except maybe factory reset or OS upgrades)

 

Best regards

Please use plain text.
BlackBerry Development Advisor (Retired)
astanley
Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: Curve 9300 OS6 localstorage resets on power failure

Yes, the data in localStorage should persist even after a battery replacement.  If what you are seeing is otherwise, I believe it may be an OS bug.  

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.
Please use plain text.
Contributor
sergiop
Posts: 23
Registered: ‎04-13-2012
My Device: Curve 9300 OS6
My Carrier: None

Re: Curve 9300 OS6 localstorage resets on power failure

Hi there, thanks for your reply. Is there any way for me to be shure that this is an OS bug? And if it is a bug, how do I fix it?
Please use plain text.
New Contributor
Racum
Posts: 3
Registered: ‎05-09-2013
My Device: Curve 9300
My Carrier: +55 11 986321037

Re: Curve 9300 OS6 localstorage resets on power failure

Some OS 6.x versions don't support localStorage, try my polyfill:

http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/Using-localStorage-for-pre-OS-6-...

 

[]'s

Racum

 

Please use plain text.