mardi 27 septembre 2016

Adobe Air Can't Connect to Server on iOS10

I have an application on Appstore like 2 years. I developed with Adobe AIR.

On iOS10 my app not working. Can't connect to http links.

I debug and get error from connections: Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: http://ift.tt/2dxCeIh

I used HTTPStatusEvent.HTTP_STATUS for understand any solution, it gives 0

Any methods to solve?

MY CODE:

var urlReq:URLRequest = new URLRequest ("http://ift.tt/2dxCeIh");            
urlReq.method = URLRequestMethod.POST;          
var urlVars:URLVariables = new URLVariables();          
urlVars.user_id = Main.instance.userID;     
urlReq.data = urlVars; 


var loader:URLLoader = new URLLoader (urlReq);
loader.addEventListener(Event.COMPLETE, onCreditComplete);


loader.addEventListener(HTTPStatusEvent.HTTP_RESPONSE_STATUS, httpStatusHandler);
loader.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpStatusHandler);


loader.dataFormat = URLLoaderDataFormat.VARIABLES;
loader.load(urlReq);

Aucun commentaire:

Enregistrer un commentaire