Web Niraj
  • Facebook
  • Flickr
  • Github
  • Linkedin
  • Twitter
  • YouTube
Online portfolio, code examples and developer blog
  • About
  • Contact
  • Portfolio
  • WordPress
Search the site...
  • Home
  • Blog
  • Cordova: Fixing jQuery Mobile Navigation Issues on iOS 9.x

Cordova: Fixing jQuery Mobile Navigation Issues on iOS 9.x

0

iOS 9 changed the way JavaScript handles navigation history, and as a result, hybrid apps using jQuery Mobile can break (i.e. those build in Trigger.io and Cordova). Luckily, there is a easy fix that can resolve the issue. Please note that the Cordova Device Plugin is required.

In the onDeviceReady function, add the following code lines to fix the navigation issues:

https://gist.github.com/niraj-shah/dbc2b28630d5538eebbd

The above code specifically looks for iOS version 9 or above, since the issue is limited to iOS devices using version 9. It’s important to preform this check, as adding these lines in an Android App will break the hardware back button.

You can easily test this code and your app on the iOS simulator before deploying your app to end-users.

Need further help? Post your comment below.

Bug, Cordova, iOS, PhoneGap

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

StackExchange / StackOverflow

profile for Niraj Shah on Stack Exchange, a network of free, community-driven Q&A sites

Support Me

PSN Profile

Tags

ACL Amazon Amazon Web Services Android Android 4.4 KitKat Android 5.0 Lollipop Apache Backup Bug Command Line Cordova cPanel / WHM Facebook Facebook Graph API Facebook PHP SDK 4.0 Facebook Social Plugins Fan Page Firewall Flash Gadget Geolocation Google Nexus 5 Hacking HTML5 iOS JavaScript jQuery Laravel 5 Linux NodeJS Parse PDF PHP Plugin Portfolio PS4 Review Security Server SSH SSL Sysadmin Tutorial WordPress WordPress Plugins
© 2011-2025 Niraj Shah
  • Blog
  • Portfolio
  • WordPress
  • About Me
  • Contact Me
  • Privacy Policy