Page 1 of 1

Time limit for localStorage

Posted: Fri Feb 21, 2014 10:28 pm
by Bad Addy

Could I ask if there is a time limit for localStorage, and with any app using localStorage?

Also, at what point does this variables within it get destroyed??

I ask, because I cannot find a way to get around the iOS device id changing if a user removes the app, and re-installs it. I really need a constant linked to the app ?


Time limit for localStorage

Posted: Fri Feb 21, 2014 10:52 pm
by maxkatz

I believe every browser/mobile browser might have slightly different limits. It's best to check with the browser you are using.


Time limit for localStorage

Posted: Fri Feb 21, 2014 10:54 pm
by Igor

Hello,

[quote:]
Could I ask if there is a time limit for localStorage, and with any app using localStorage?

Also, at what point does this variables within it get destroyed??
[/quote]

https://getsatisfaction.com/apperyio/...

[quote:]
I ask, because I cannot find a way to get around the iOS device id changing if a user removes the app, and re-installs it. I really need a constant linked to the app ?
[/quote]

In such case you could use DB to store user information. http://docs.appery.io/tutorials/build...


Time limit for localStorage

Posted: Sat Feb 22, 2014 9:18 am
by Bad Addy

On my iOS, when i remove the app and re-install it, it over writes the old device id, rather than creates a new row. Does this happen to all iOS devices ?


Time limit for localStorage

Posted: Sat Feb 22, 2014 9:25 am
by Bad Addy

Also as you make the app and turn it into a binary, what browser default do you use as a template ?

Asking me what browser I use, I find a little odd !


Time limit for localStorage

Posted: Sat Feb 22, 2014 4:01 pm
by Igor

Could you show us how do you save device ID? The list of supported browsers:
http://docs.appery.io/getting-started...


Time limit for localStorage

Posted: Wed Feb 26, 2014 3:38 pm
by Bad Addy

I no longer save it. Because it did not work on iOS with it changing.

But I would like to know how I put a constant while the app is installed, to save people having to log into the app every time ?


Time limit for localStorage

Posted: Wed Feb 26, 2014 6:11 pm
by Kateryna Grynko

Hi Addy,

You can use cookies with time limit: https://developer.mozilla.org/en-US/d...