Page 1 of 1

Back button going to wrong page on iOS

Posted: Thu Dec 10, 2015 12:33 pm
by Chris6743166

I have a strange problem which has recently show up in a few apps. The apps have a 'News' page, which is accessed from the homepage. There are also other pages which are accessed from a menu panel.

The problem is this: if you visit a page on the menu panel and then press the back button, you are taken to the News page, instead of back to the homepage.

This only happens on iOS and only if you have previously visited the news page.

What is more, this used to work fine.

Can you please help? I have 4 apps published which are displaying this problem.

Thanks,

Chris


Back button going to wrong page on iOS

Posted: Thu Dec 10, 2015 12:35 pm
by Chris6743166

One of the apps is called Codsall High (Project: e4c3e291-464b-4638-9f00-5fa66e683cf4) and it is shared with support.

Many thanks for your help with this.


Back button going to wrong page on iOS

Posted: Thu Dec 10, 2015 12:38 pm
by Chris6743166

I should add that this problem only appears in iOS builds - not in the online test, the ios Appery tester or Android builds.


Back button going to wrong page on iOS

Posted: Thu Dec 10, 2015 3:00 pm
by Serhii Kulibaba

Hello Chris,

You can redefine backbutton with your custom logic, e.g. set action "navigateTo"


Back button going to wrong page on iOS

Posted: Thu Dec 10, 2015 3:52 pm
by Chris6743166

Hi Sergiy,

I unticked the back button option and replaced it with a basic button to which I applied this javascript:

$.mobile.changePage("home.html", {
allowSamePageTransition: true,
transition: "",
reverse: "true",
reloadPage: false
});

Thanks for the reply.


Back button going to wrong page on iOS

Posted: Fri Dec 11, 2015 9:28 pm
by Serhii Kulibaba

Please let me know if I can be of further assistance.