Skip to main content
Known Participant
Mar 30, 2017 10:22 PM UTC
Answered

Air for iOS SDK 25 XML/ JSON Problem.

Hi everyone.

First of all sorry for my english 😕😕

I have been working with Adobe Air a long time but lately I´m facing some issues with the latest releases of the SDK.

The problem is displaying data from xml or json objects, everything works fine with Air SDK 17 but when I test on some recent releases always displays an error, not even load the data at all.

I don´t know if it is a bug or something like that, the code works perfect but as I mentioned fails to load on the resent releases of the SDK.

If anyone have a solution for this will be highly appreciated.

This topic is closed to new replies. Start a new post to keep the conversation going.
yachts9999Correct answer
Inspiring
Apr 3, 2017 8:20 AM UTC

No, I'm using only http. But is the same with https thats why I guess is a bug from the latest releases.

Going ahead testing with a simple php chat is the same connection error.


OK how about testing for a Security Error:

xmlLoaderA.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);

private function securityErrorHandler(event:Event):void {

   trace("************ XML SECURITY ERROR *************");

   trace("SECURITY error occured with " + event.target);

}

Also, have you added the now required NSTransportSecurity XML to your iOS app descriptor as described here:

actionscript 3 - Flash CS6 - AS3 - Check internet connection not working at all - Stack Overflow

(Search the page for the text "Also, have you added the now required NSTransportSecurity XML to your iOS app descriptor")

11 replies

Inspiring
Mar 31, 2017 12:12 PM UTC

Can you show the code that is failing?

I am loading XML in AIR 25 SDK and it works fine.

Translate
s2hagoAuthor
Known Participant
Mar 31, 2017 2:29 PM UTC

Is it working on the device? because on emulator runs normal and everything works.

The code I´m using.

LoadPlaylist("Some URL");

private function LoadPlaylist(Uri:String):void{

  xmlLoaderA = new URLLoader();

  xmlLoaderA.addEventListener(Event.COMPLETE, onCompleteA);

  xmlLoaderA.addEventListener(IOErrorEvent.IO_ERROR, onError);

  xmlLoaderA.load(new URLRequest(Uri));

  }

private function onCompleteA(e:Event):void {

     //Do Something

}

I have tested with SDK 21,22,23,24,25 currently working with SDK 17 for iOS. on Android is working.

Translate
Inspiring
Mar 31, 2017 2:34 PM UTC

Do you get anything if you put a trace statement inside the onError handler (not shown in your code)?

private function ioErrorHandler(event:Event):void {

   trace("************ XMLERROR *************");

   trace("errorHandler: " + event);

}

Translate