Tooba Atif
Posts: 0
Joined: Fri Apr 04, 2014 3:07 am

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

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?

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

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

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

Tooba Atif
Posts: 0
Joined: Fri Apr 04, 2014 3:07 am

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

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.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

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

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...

Tooba Atif
Posts: 0
Joined: Fri Apr 04, 2014 3:07 am

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

Thnaks Katya I will try this now.
I have followed this link and apparently its working for online mode.
http://stackoverflow.com/questions/66...

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

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

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,

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

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

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.

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

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

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:

Image

It is just html. Butttons are irresponsive. Shouldn't be open all together?

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

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

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.

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

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

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.

Return to “Issues”