Copy link to clipboard
Copied
Hi everyone,
I am currently working on an app using Adobe Air, and as I was about to publish it, I tried to update my Air version (19) to the last one, and re-test the entire app.
And by doing this I noticed that something is now wrong with the URLMonitor.
I am using it to test my connection, as following :
monitor = new URLMonitor(new URLRequest(http://www.adobe.com));
ListenerMgr.addListener(monitor, StatusEvent.STATUS, function (evt:StatusEvent):void {
trace("Network status changed, connected ? " + monitor.available);
_isHTTPConnected = monitor.available;
});
if (!monitor.running) {
monitor.start();
}
That code always worked before the Air update, and is still working on Android 4.4.4, iOS 8 and all simulators, but when I launch it on an iOS 9 device (9.1, 9.2, ...), monitor.available is ALWAYS false.
Could you please tell me if this is a real issue or if I missed something ment to replace that monitor ?
Thank you!
Hi,
In AIR 20 build 233 we have upgraded iOS9 SDk.
AIR Runtime is now built with iOS 9 SDK which enables AIR developers to use ANEs built with iOS 9 APIs without using the –platformSDK switch while packaging with ADT. App Transport Security (ATS) is being introduced from Apple in iOS9, which doesn’t allow unsecure connections between App and Web services. Due to this change all the connections which are made to unsecure web sites via Loader, URLLoader will discontinue and not work due to App Trans
...Copy link to clipboard
Copied
Hi,
In AIR 20 build 233 we have upgraded iOS9 SDk.
AIR Runtime is now built with iOS 9 SDK which enables AIR developers to use ANEs built with iOS 9 APIs without using the –platformSDK switch while packaging with ADT. App Transport Security (ATS) is being introduced from Apple in iOS9, which doesn’t allow unsecure connections between App and Web services. Due to this change all the connections which are made to unsecure web sites via Loader, URLLoader will discontinue and not work due to App Transport Security. Please specify exceptions to the default behavior by adding keys to InfoAdditions tag of application descriptor of your app.
<iPhone>
<InfoAdditions>
<![CDATA[
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key><true/>
</dict>
]]>
</InfoAdditions>
</iPhone>
Please let us know if this resolves your issue.
Thanks,
Adobe Air Team
Copy link to clipboard
Copied
It works ! Thank you very much for the explanations, I'll know this now
Copy link to clipboard
Copied
Helped me! Thanks!
Copy link to clipboard
Copied
Después de varias horas sin sospechar porqué pasaba y una alta dosis de preocupación encontré la respuesta en este foro.
Gracias
Copy link to clipboard
Copied
I'm fighting a weird issue. My application downloads some content via http...
I'm using;
Animate CC on Mac mini (High Sierra),
AIR 29.0.0.122 for Desktop,
and output as application with runtime embedded...
When i debug all works fine, but it doesn't work after packaging.
What could be the problem?