navigator.app.backHistory()

2 posts, 0 answers
  1. emmapabale
    emmapabale avatar
    12 posts
    Member since:
    Jun 2013

    Posted 04 Jul 2013 Link to this post

    Is there any alternative for this? I think its not working or I am using it wrong?

    I'd like to make a back button for an ios application, and id like my program to detect which page it went last before clicking the current page the user is in.
  2. Stefan Dobrev
    Admin
    Stefan Dobrev avatar
    790 posts

    Posted 08 Jul 2013 Link to this post

    Hi emmapabale,

    You can try with calling history.go(-1) along with navigator.app.backHistory():
    history.go(-1);
    navigator.app.backHistory();

    If you are using Kendo UI Mobile you can use the BackButton widget. If you are using jQuery mobile you can set data-rel="back" data attribute on your button.


    Regards,
    Stefan Dobrev
    Telerik

    Looking for tips & tricks directly from the Icenium team? Check out our blog!
    Missed our first webinar, watch it here.
    Share feedback and vote for features on our Feedback Portal.
Back to Top