Rahul Gaba

I am a full stack developer who loves writing code for a living. I am passionate about JavaScript, VR, react-native, nodeJS, web development and Paneer.

 » Blogs
 » About Me
 » Projects and Experiments
 » Github
 » XML Feed

Developing Cordova apps with iOS9 support

14 Oct 2015 »
Hi All,

As we all know, iOS9 update is out there and Apple is using WKWebView as the first citizen instead of UIWebView.

It introduced a lot of performance and security improvements, but It also introduced some breakage in the apps built on UIWebView (Cordova, Ionic) with AngularJS.

I will share the issues I faced in one of the apps and how I fixed it. There might be some other issues as well.

1. Infinite digest loop in AngularJS : I used this plugin for this issue: https://github.com/Telerik-Verified-Plugins/WKWebView

Note that we have not used any Cordova plugins in our app. Though Cordova is also working on creating a plugin but that plugin doesn’t have any fallback option as of now i.e. , the app will break on iOS8 if we use the official patch plugin.

2. The app was slightly zoomed in and slide animations was also behaving weirdly. I followed this url to fix the issue: http://stackoverflow.com/questions/32804106/angularjs-slide-transition-broken-on-safari-ios-9
More details can be found here : https://forums.developer.apple.com/thread/13510

3. Bootstrap modal problem : This is a bug in iOS9 safari. It might get fixed though. I followed this url to fix the issue: http://stackoverflow.com/questions/32675849/screen-zooms-in-when-a-bootstrap-modal-is-opened-on-ios-9-safari