Problems with window.history using JQuery/Javascript on Cordova app in IOS9

后端 未结 2 1092
情深已故
情深已故 2021-02-04 13:12

I\'m having trouble with a Cordova app under IOS9 (beta). I\'m using latest Cordova and JQuery mobile builds. The window.history is not getting updated which is causing the fol

2条回答
  •  天命终不由人
    2021-02-04 13:37

    I see this was a couple weeks ago, but I'll post this in case someone else runs into it. It sounds like it may be related to navigation events generated by a hash change in iOS 9. If so, you can add this to your index.html to disable the hash listening:

    (needs to go between the jquery.js and jquery.mobile-1.4.5.js as shown here)

    
      
    
    

提交回复
热议问题