Page 2 of 3
					
			
				For offline mode, is the local storage variables consume phone memory?
				Posted: Mon Nov 24, 2014 11:11 am
				by Evgene Karachevtsev
				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?
 
					
			
				For offline mode, is the local storage variables consume phone memory?
				Posted: Mon Nov 24, 2014 12:08 pm
				by Hawk
				No, I am just explaing how I got it working following your advice. Thanks
 
					
			
				For offline mode, is the local storage variables consume phone memory?
				Posted: Sun Nov 30, 2014 11:46 pm
				by EJLD
				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
 
					
			
				For offline mode, is the local storage variables consume phone memory?
				Posted: Mon Dec 01, 2014 3:43 am
				by Yurii Orishchuk
				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.
 
					
			
				For offline mode, is the local storage variables consume phone memory?
				Posted: Mon Dec 29, 2014 5:14 pm
				by Wilson W
				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
 
					
			
				For offline mode, is the local storage variables consume phone memory?
				Posted: Mon Dec 29, 2014 9:22 pm
				by Wilson W
				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
 
					
			
				For offline mode, is the local storage variables consume phone memory?
				Posted: Mon Dec 29, 2014 9:24 pm
				by Alena Prykhodko
				Glad you coped with this. 
 Thank you for update.
 
					
			
				For offline mode, is the local storage variables consume phone memory?
				Posted: Thu May 21, 2015 1:37 pm
				by EJLD
				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 ?
 
					
			
				For offline mode, is the local storage variables consume phone memory?
				Posted: Thu May 21, 2015 1:49 pm
				by EJLD
				forget about above question for the time being, I m about to find out where the issue comes from 
 
					
			
				For offline mode, is the local storage variables consume phone memory?
				Posted: Fri May 22, 2015 7:53 am
				by Evgene Karachevtsev
				Hello Eric,
 
 Thank you for the update, glad you found out it 