• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

AIR 20.0.0.233 URLMonitor broken with iOS 9 ?

New Here ,
Jan 11, 2016 Jan 11, 2016

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!

TOPICS
Development

Views

1.6K

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
community guidelines

correct answers 1 Correct answer

Adobe Employee , Jan 11, 2016 Jan 11, 2016

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

...

Votes

Translate

Translate
Adobe Employee ,
Jan 11, 2016 Jan 11, 2016

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

Votes

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
community guidelines
New Here ,
Jan 11, 2016 Jan 11, 2016

Copy link to clipboard

Copied

It works ! Thank you very much for the explanations, I'll know this now

Votes

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
community guidelines
Explorer ,
Feb 09, 2016 Feb 09, 2016

Copy link to clipboard

Copied

Helped me! Thanks!

Votes

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
community guidelines
New Here ,
Aug 04, 2016 Aug 04, 2016

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

Votes

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
community guidelines
Explorer ,
Apr 16, 2018 Apr 16, 2018

Copy link to clipboard

Copied

LATEST

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?

Votes

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
community guidelines