Page 1 of 3
For offline mode, is the local storage variables consume phone memory?
Posted: Mon Jun 16, 2014 8:45 am
by Tooba Atif
Hi,
I am using offline mode for my application. When user loads the list from rest service and loads that in local Storage variable. Then would the local variables consume the phones memory or what?
The value returned from my rest service contain 1000 rows so I am not sure whether it will store in phone when there is no internet?
For offline mode, is the local storage variables consume phone memory?
Posted: Mon Jun 16, 2014 9:31 am
by Evgene Karachevtsev
Hello Tooba,
There is a limit for local storage - about 5 Mb. Please check if there is enough of space for keeping your values:
http://stackoverflow.com/a/2989317
For offline mode, is the local storage variables consume phone memory?
Posted: Tue Jun 17, 2014 2:01 am
by Tooba Atif
Thanks a lot.
Can I test the application for offline mode on chrome?
I am trying to see the offline mode working but the screen is not loading its just showing the spinning icon.
For offline mode, is the local storage variables consume phone memory?
Posted: Tue Jun 17, 2014 4:11 pm
by Kateryna Grynko
Hi Tooba,
This is not working as all the data is loaded from Appery.io servers. To test in offline mode in Chrome, you would need to export your app as Web application:
http://devcenter.appery.io/documentat...
For offline mode, is the local storage variables consume phone memory?
Posted: Wed Jun 18, 2014 1:07 am
by Tooba Atif
Thnaks Katya I will try this now.
I have followed this link and apparently its working for online mode.
http://stackoverflow.com/questions/66...
For offline mode, is the local storage variables consume phone memory?
Posted: Mon Nov 24, 2014 8:13 am
by Hawk
Hi Kateryna,
How to use the exported app as web application. It's .zip folder and when I open it, it's showing every page.html and .css separately. How can I run a debbuger on offline mode to recognize the errors occur?
Thanks,
For offline mode, is the local storage variables consume phone memory?
Posted: Mon Nov 24, 2014 8:42 am
by Evgene Karachevtsev
Hello Hawk,
You should open it as a web page in your browser and after you have uploaded all from DB disconnect your Ethernet connection to debug offline mode.
Don't forget to open console before debugging.
For offline mode, is the local storage variables consume phone memory?
Posted: Mon Nov 24, 2014 9:03 am
by Hawk
Hi Evgene,
Is there any specific file I need to open in chrome? I openned the html file of the page I need to test. But this is how it looks:
It is just html. Butttons are irresponsive. Shouldn't be open all together?
For offline mode, is the local storage variables consume phone memory?
Posted: Mon Nov 24, 2014 9:38 am
by Evgene Karachevtsev
Hawk,
No, it should look the same as on your page.
http://gyazo.com/0727ad2d4c2eed02f4ab... - example.
All styles should be applied to a page. To export as web app please click export and choose HTML/JS/CSS item. And please don't forget to unzip an archive.
For offline mode, is the local storage variables consume phone memory?
Posted: Mon Nov 24, 2014 11:01 am
by Hawk
Thanks Evgene, It seems that I did not unzip the archive before I open HTML file. In addition, If I need any data from DB, must open the page that has the service that loads this data first.