Skip to content

App Transport Security support aka apps on iOS 9 don't work #4560

Closed
@Tarang

Description

@Tarang
Contributor

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

changed the title [-]App Transport Security support[/-] [+]App Transport Security support aka iOS 9 Apps don't work[/+] on Jun 14, 2015
changed the title [-]App Transport Security support aka iOS 9 Apps don't work[/-] [+]App Transport Security support aka apps on iOS 9 don't work[/+] on Jun 14, 2015
Omeryl

Omeryl commented on Jun 17, 2015

@Omeryl

Haha, this just had me spinning in circles for the last hour. Great catch, thanks for the work around.

glasser

glasser commented on Jun 23, 2015

@glasser
Contributor

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

krishaamer commented on Jul 2, 2015

@krishaamer

Had the same problem. Thank you.

nanokanato

nanokanato commented on Jul 6, 2015

@nanokanato

I also this came communication fail. Thank you.

devdudeio

devdudeio commented on Jul 6, 2015

@devdudeio

had the same issue. workaround fixed it for now. thx!

krazyeom

krazyeom commented on Aug 9, 2015

@krazyeom
Contributor

There was same issue on React Native. facebook/react-native#1563

They just added blew code to end of Info.plist

NSAppTransportSecurity


NSAllowsArbitraryLoads

devdudeio

devdudeio commented on Aug 31, 2015

@devdudeio

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

added this to the Release 1.2 milestone on Sep 11, 2015
added a commit that references this issue on Sep 11, 2015
592ed38
stubailo

stubailo commented on Sep 12, 2015

@stubailo
Contributor

The workaround is now published as part of 1.2-rc.14. Try it out!

9 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @glasser@krishaamer@martijnwalraven@krazyeom@stubailo

      Issue actions

        App Transport Security support aka apps on iOS 9 don't work · Issue #4560 · meteor/meteor