iOS9 fixes for Ionic
iOS9 introduces some breaking changes as well as a new security model for apps. If your app requires any http requests, the request will fail once they are recompiled locally.
For acces to any external URLs, simply add the follow to the
<key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key><true/> </dict>
This will allow your app to have access to any URL. While this does work, you may want to limit access to only URLs you trust.
<key>NSAppTransportSecurity</key> <dict> <key>NSExceptionDomains</key> <dict> <key>www.ionicframework.com/</key> <dict> <key>NSIncludesSubdomains</key><true/> <key>NSExceptionRequiresForwardSecrecy</key><false/> <key>NSExceptionAllowsInsecureHTTPLoads</key><true/> <key>NSThirdPartyExceptionAllowsInsecureHTTPLoads</key><true/> </dict> </dict> </dict>
This will only allow me to access the domain I have specified. For more info and to learn what each key does, take a look at Apple's ATS docs