Hnto
Posts: 0
Joined: Fri Jan 10, 2014 3:40 pm

App crash when loading

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!

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

App crash when loading

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?)

Hnto
Posts: 0
Joined: Fri Jan 10, 2014 3:40 pm

App crash when loading

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.

Hnto
Posts: 0
Joined: Fri Jan 10, 2014 3:40 pm

App crash when loading

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.

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

App crash when loading

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

App crash when loading

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

Hnto
Posts: 0
Joined: Fri Jan 10, 2014 3:40 pm

App crash when loading

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

Hnto
Posts: 0
Joined: Fri Jan 10, 2014 3:40 pm

App crash when loading

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.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

App crash when loading

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.

Return to “Issues”