Skip to main content
johanm58041121
Participant
October 5, 2015
Question

air 19 & iOs 9 App Transport Security

  • October 5, 2015
  • 2 replies
  • 3800 views

I had downloaded the new air 19 sdk for iOs9 compatibility.

I had found on internet that I need to add the follow code in info.plist:

<key>NSAppTransportSecurity</key> <dict> <key>NSExceptionDomains</key> <dict> <key>facebook.com</key> <dict> <key>NSIncludesSubdomains</key> <true/> <key>NSThirdPartyExceptionRequiresForwardSecrecy</key> <false/> </dict> <key>fbcdn.net</key> <dict> <key>NSIncludesSubdomains</key> <true/> <key>NSThirdPartyExceptionRequiresForwardSecrecy</key> <false/> </dict> <key>akamaihd.net</key> <dict> <key>NSIncludesSubdomains</key> <true/> <key>NSThirdPartyExceptionRequiresForwardSecrecy</key> <false/> </dict> </dict> </dict>

but, I don't any idea about this, info.plist, file in my project.

Everyones now where I may add this code?

I have found this on internet:

Preparing Your Facebook Apps for iOS 9 (Beta) - Documentation - Facebook for Developers

https://developer.apple.com/library/prerelease/ios/technotes/App-Transport-Security-Technote/

but doesn't help me.

Thanks

This topic has been closed for replies.

2 replies

Participant
October 7, 2015
December 9, 2015

Your solution need a known domain to be specified, but our App let user choose his own ddns or ip address.

In iOS9 (and only in iOS9) when the server is not reachable or mispelled or network is down, the App crash.

If the server is reachable the App works well.

Some workaround for this?

Thank you.

Bye.

Adobe Employee
December 10, 2015

Hi, HomeInnovation‌,

kindly add the following in your app-xml info additions for your iPhone. The below code should allow all the addresses as you need. Same has been mentioned in the Release notes as well:

http://fpdownload.macromedia.com/pub/labs/flashruntimes/shared/air20_flashplayer20_releasenotes.pdf 

<key>NSAppTransportSecurity</key>

<dict>

<key>NSAllowsArbitraryLoads</key><true/>

</dict>

Regarding the App crash, It is  recommended to handle the misspelled and network down conditions in the application code itself.

If you still face problem, kindly send a sample application at  CHHETRIatADOBEdotCOM. We will surely try to fix your problem.

-Roshan

johanm58041121
Participant
October 6, 2015

I found! I have to change the infoadditions in app.xml