Skip to main content
Apr 28, 2016 6:07 PM UTC
Answered

Connection to AMFPHP failed on iOS application

Hello,

I've a problem with my Adobe Air mobile application.
I'm using NetConnection class to connect my app to AMFPHP on a server to load my database information.

When I launch the app with an Android device, all works fine.

But, when I'm trying to launch the app on iOS device I got an error :

code : "NetConnection.Call.Failed"

description : "HTTP: Failed"

details : "http://serveuripadress/amfphp/Amfphp"

level : "error"

I'm not able to find an issue for that problem.

Did somebody can help me solve this ?
Glassalau

This topic is closed to new replies. Start a new post to keep the conversation going.
Correct answer
Apr 29, 2016 1:29 PM UTC

Thanks for your answer.
I solved the problem by adding some <InfoAdditions> tag in the app descriptor :

<key>NSAppTransportSecurity</key>

<dict>

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

</dict>

2 replies

Inspiring
Apr 29, 2016 1:23 PM UTC

Starting with Ios 9 all http calls are forbidden by default and only https calls are allowed. Some settings are available in info.plist to lift that restriction.

Translate
Correct answer
Apr 29, 2016 1:29 PM UTC

Thanks for your answer.
I solved the problem by adding some <InfoAdditions> tag in the app descriptor :

<key>NSAppTransportSecurity</key>

<dict>

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

</dict>

Translate