Skip to main content
johanm58041121
Participant
Oct 5, 2015 2:44 PM UTC
Question

air 19 & iOs 9 App Transport Security

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 is closed to new replies. Start a new post to keep the conversation going.

5 replies

Participant
Oct 7, 2015 10:06 AM UTC
Dec 9, 2015 11:41 AM UTC

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.

Translate
Adobe Employee
Dec 10, 2015 3:37 PM UTC

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

Translate
johanm58041121
Participant
Oct 6, 2015 10:28 AM UTC

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

Translate