Page 1 of 1

App crash when loading

Posted: Sun Jan 12, 2014 6:01 pm
by Hnto

Hello,

I have a couple of pages where I extract data from my webserver in XML format and use RESTservice to map it to my listview. This all goes well and the data is shown. But now I've noticed a problem: whenever the data is loading and the user clicks on his (Android) back button of the phone the page returns but the app becomes white and you can't do anything anymore. It just crashes.

I've noticed that this only happens on Android phones, however, occasionally it also happens in the webbrowser.

This is my app:
http://appery.io/app/mobile-frame?src...

On the first page, click on the shopping bag and then click on "Baby" - "Beebie Love" and after that it shows the webshop with the articles of your desired filter. Now, when using and Android phone, you see the data is loading (it's getting the articles from my webserver) but while it is loading you click on the back button and then the app crashes.

Is this a bug within Appery or is my code somehow incorrect?

Thank you!


App crash when loading

Posted: Sun Jan 12, 2014 6:35 pm
by Illya Stepanov

Hello -

Which version Android you tested?

And how it's reproduce in web browser, as there is no back button?
(and in what browser it's reproduce?)


App crash when loading

Posted: Sun Jan 12, 2014 6:46 pm
by Hnto

Hello,

Android 4.x and higher.
I've also tried on lower version, all the same problems.

The back button (physical button) only appears after the load success. But in Android users can use their back button on the phone. And then the app crashes.


App crash when loading

Posted: Mon Jan 13, 2014 1:09 am
by Hnto

The error also occurs in the browser. For instance, when the articles are loading (third page) and you hit the back button of your webbrowser, the app crashes. The screen becomes and you have to refresh to start the app again.


App crash when loading

Posted: Mon Jan 13, 2014 1:13 am
by Alena Prykhodko

Hello! Please tell us browser and its version. We'll also check on device and update asap.


App crash when loading

Posted: Mon Jan 13, 2014 10:26 am
by Maryna Brodina

Hello! Please tick "Render all pages in one htmll file"


App crash when loading

Posted: Mon Jan 13, 2014 7:05 pm
by Hnto

I've noticed that the problem seems to be fixed when I do this, but this isn't an option either. Certain functionalities seem to not work anymore when I use the "one html file".


App crash when loading

Posted: Tue Jan 14, 2014 12:09 am
by Hnto

Hello Maryna,

I've fixed the problem regarding the 'certain functionalies not working anymore'. I've ticked 'Redner all pages in one html file' and the app doesn't crash anymore. Thank you!

However, I would like to know: is this a bug in Appery? Because this might happen again in the future and the jquery multipage template might not be an option then.


App crash when loading

Posted: Tue Jan 14, 2014 6:51 am
by Maryna Brodina

Hello! No, it's not a bug. When pages are not rendered in one html file only start page is loaded. After service invocation all data is returned to handlers and if you navigate from second page to third one and go back with browser back button the mapping fails because the second page is not loaded yet.