Skip to main content
April 28, 2016
Answered

Connection to AMFPHP failed on iOS application

  • April 28, 2016
  • 1 reply
  • 514 views

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 has been closed for replies.
Correct answer

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>

1 reply

Inspiring
April 29, 2016

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.

Correct answer
April 29, 2016

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>