Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

For offline mode, is the local storage variables consume phone memory?

Hawk,

[quote:]In addition, If I need any data from DB, must open the page that has the service that loads this data first.[/quote]
Sorry, I'm not sure I understand you correctly, is that was a question?

Hawk
Posts: 0
Joined: Mon Aug 04, 2014 11:23 am

For offline mode, is the local storage variables consume phone memory?

No, I am just explaing how I got it working following your advice. Thanks

EJLD
Posts: 0
Joined: Sun Jun 08, 2014 11:03 pm

For offline mode, is the local storage variables consume phone memory?

Hi There, very interesting topic.

based on above links, my understanding is that each app user has a 5MB storage space within her app.
in order to optimize usage, do you guys know if there is a way to get the current localStorage volume occupied ?

Thks in advance,
Eric

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

For offline mode, is the local storage variables consume phone memory?

Hi EJLD,

You can calculate it with following code:

precode

var total = 0;
for (var x in localStorage) {
//Uncomment it to see details.
//console.log(x + "=" + ((localStorage[x].length * 2) / 1024 / 1024).toFixed(2) + " MB");
total += ((localStorage[x].length * 2) / 1024 / 1024)
}
console.log('Total : ' + total.toFixed(2) + 'Mb');

/code/pre

Regards.

Wilson W
Posts: 0
Joined: Thu Dec 18, 2014 4:15 am

For offline mode, is the local storage variables consume phone memory?

Hello Team

Trying to setup a local storage variable using instructions from Building a Hello World app with HTML5 local storage on
http://devcenter.appery.io/tutorials/...

but step 4. From the action list, select Set local storage variable:

is not an option on my APP
(My app has "Set storage variable")

Please let me know if am missing a step

Thanks much
Wilson

Wilson W
Posts: 0
Joined: Thu Dec 18, 2014 4:15 am

For offline mode, is the local storage variables consume phone memory?

Hello Team

For instructions on
http://devcenter.appery.io/tutorials/...

To work for my APP had to go to model and storage, storage
Enter new storage variable add

and then use variable in this case username (use link above for detailed instructions)

so please consider this resolved

Thanks much

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

For offline mode, is the local storage variables consume phone memory?

Glad you coped with this.
Thank you for update.

EJLD
Posts: 0
Joined: Sun Jun 08, 2014 11:03 pm

For offline mode, is the local storage variables consume phone memory?

Hi Yurii, sorry just realized that I never said thk you for this answer :)
really need it this time.
also, it seems that with 2MB I already get an error msg such as "... over quota...".
I don't store anything else ... does the app use LS capacity ?

EJLD
Posts: 0
Joined: Sun Jun 08, 2014 11:03 pm

For offline mode, is the local storage variables consume phone memory?

forget about above question for the time being, I m about to find out where the issue comes from :)

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

For offline mode, is the local storage variables consume phone memory?

Hello Eric,

Thank you for the update, glad you found out it :)

Return to “Issues”