Page 1 of 1

Back button: iOS issues

Posted: Tue Mar 08, 2016 11:52 pm
by Oliver Fisk

I've created a back button in my app.

It works fine in web browsers and when deployed as an android app but when used in Safari on iOS or through the appery testing app nothing happens.

I have used both:
history.back();
window.history.back();

but neither of them work on iOS.

Any suggestions?


Back button: iOS issues

Posted: Wed Mar 09, 2016 8:21 pm
by Jaime Vergara

I have the same problem. I did try this link but does not work

http://stackoverflow.com/questions/32...

I waiting for answer..


Back button: iOS issues

Posted: Wed Mar 09, 2016 10:17 pm
by Illya Stepanov

Hi all -

Thanks for letting us know, it looks like a Cordova issue we have reported this to our development team.


Back button: iOS issues

Posted: Wed Jun 08, 2016 4:15 pm
by Ideal APP

Hi Illya,

I am facing the same issue. do you have any solution/workaround for this ?

thanks


Back button: iOS issues

Posted: Wed Jun 08, 2016 4:54 pm
by Evgene Karachevtsev

Hello,

Unfortunately not yet, we're still working on this issue.


Back button: iOS issues

Posted: Thu Jun 09, 2016 4:47 am
by Ideal APP

I would like to suggest a build in solution:
If you will save to local storage the page name before hide, you will be able to nevigate to it (instead of history.back()).

This event show the previous page name before hide:
$(document).on("pagebeforehide",function(event, data){
alert(data.prevPage.attr('id'));
});

If you will add new item called: "Previous page" on navigate to page event, so you will be able to navigate to the saved page from local storage. it will solved this issue.

What do you think ?


Back button: iOS issues

Posted: Thu Apr 13, 2017 1:47 pm
by Illya Stepanov

Hi all,

This is to share an update on this topic.

In overall it's not a good practice to use codehistory.back()/code in jQuery Mobile projects.
In jQuery Mobile it is better to use code$.mobile.back()/code instead of web API codehistory.back()/code

The method code$.mobile.back()/code works fine both in a browser within jQuery Mobile app and in a hybrid app.


Back button: iOS issues

Posted: Thu Apr 27, 2017 3:22 am
by Ideal APP

Thank you Illya.