Description
iOS 9 (may) force developers to use App Transport Security exclusively. I overheard this somewhere randomly so I don't know whether this is true myself. But I suspect it and have come to this conclusion:
The app running on iOS 9 will (maybe) no longer connect to a Meteor server without SSL.
This means running meteor run ios
or meteor run ios-device
will (probably?) no longer work.
In the app's info.plist
, NSAppTransportSecurity
[Dictionary
] needs to have a key NSAllowsArbitraryLoads
[Boolean
] to be set to YES
or Meteor needs to use https for its localhost server soon. (From Page 26 http://devstreaming.apple.com/videos/wwdc/2015/711y6zlz0ll/711/711_networking_with_nsurlsession.pdf?dl=1)
This is what an error may look like. Of course this is at best, a guess:
The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.
The best possible fix is to get Meteor to use a SSL server in dev mode.
Oh the hassle! Also again, I overheard this from a loud third party.
Activity
[-]App Transport Security support[/-][+]App Transport Security support aka iOS 9 Apps don't work[/+][-]App Transport Security support aka iOS 9 Apps don't work[/-][+]App Transport Security support aka apps on iOS 9 don't work[/+]Omeryl commentedon Jun 17, 2015
Haha, this just had me spinning in circles for the last hour. Great catch, thanks for the work around.
glasser commentedon Jun 23, 2015
Thanks for the report. The MDG core team is focused on some other areas of the platform right now, so we may not get to a fix for this soon. We’d welcome community help on this and other Cordova bugs in the form of PRs or other supporting information.
krishaamer commentedon Jul 2, 2015
Had the same problem. Thank you.
nanokanato commentedon Jul 6, 2015
I also this came communication fail. Thank you.
devdudeio commentedon Jul 6, 2015
had the same issue. workaround fixed it for now. thx!
krazyeom commentedon Aug 9, 2015
There was same issue on React Native. facebook/react-native#1563
They just added blew code to end of Info.plist
NSAppTransportSecurity
NSAllowsArbitraryLoads
devdudeio commentedon Aug 31, 2015
is there a way to do this with a deploy script? its super annoying to add this 2 entries in xcode every time after a
meteor reset
Disable iOS 9 App Transport Security until Cordova adds support
stubailo commentedon Sep 12, 2015
The workaround is now published as part of 1.2-rc.14. Try it out!
9 remaining items