grevory / angular-local-storage

An AngularJS module that gives you access to the browsers local storage with cookie fallback
Other
2.83k stars 585 forks source link

Making Webview localstorage persistant after app closed #202

Open rodrigograca31 opened 9 years ago

rodrigograca31 commented 9 years ago

Hi.

I'm using this module in an Cordova project and it works on the browser... But on the Android App when I close the app it loses all the information stored on the localstorage....

I've noticed that the "ngStorage" module does not do that... But I want to use this one....

Can you fix this problem or tell me what I need to change?

grevory commented 9 years ago

I haven't noticed or heard of this issue until now. I am not sure what is causing it.

Can you create an Issue on Github so someone can look into it?

Thanks.

Greg

On Mon, Mar 16, 2015 at 4:56 PM, Rodrigo Graça notifications@github.com wrote:

Hi.

I'm using this module in an Cordova project and it works on the browser... But on the Android App when I close the app it loses all the information stored on the localstorage....

I've noticed that the "ngStorage https://github.com/gsklee/ngStorage" module does not do that... But I want to use this one....

Can you fix this problem or tell me what I need to change?

— Reply to this email directly or view it on GitHub https://github.com/grevory/angular-local-storage/issues/202.

rodrigograca31 commented 9 years ago

Hi @grevory this is an issue on Github.... You are replying from your email and got confused right...?

grevory commented 9 years ago

Yes. Thought this came in as a personal message. Not sure why. I clearly did not read it well.

rodrigograca31 commented 9 years ago

I guess this is a problem with this particular module... As I said before it works with another one...

And now I discovered that making it "by hand" also works on mobile: http://learn.ionicframework.com/formulas/localstorage/ (first code block)