Highlighted

Connection to AMFPHP failed on iOS application

New Here ,
Apr 28, 2016

Copy link to clipboard

Copied

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

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>

TOPICS
Performance issues

Views

331

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Connection to AMFPHP failed on iOS application

New Here ,
Apr 28, 2016

Copy link to clipboard

Copied

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

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>

TOPICS
Performance issues

Views

332

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Apr 28, 2016 0
Advocate ,
Apr 29, 2016

Copy link to clipboard

Copied

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 29, 2016 1
New Here ,
Apr 29, 2016

Copy link to clipboard

Copied

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>

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 29, 2016 1