Add this to your descriptor file to talk to http… <InfoAdditions> <![CDATA[ <key>NSAppTransportSecurity</key> <dict> <key>NSExceptionDomains</key> <dict> <key>yourapiurl.com</key> <dict> <key>NSIncludesSubdomains</key> <true/> <key>NSExceptionAllowsInsecureHTTPLoads</key> <true/> </dict> </dict> </dict> ]]> </InfoAdditions>
On Thu, May 11, 2017 at 11:59 AM, Erik J. Thomas <e...@linqto.com> wrote: > Hey all: > > Tried testing my Flex app on iPhone 4S and iPad 2 and URLRequests are > failing on both of them, though they work perfectly on iPhone 5, 6, and > iPad AIR 2. > > The error is a 2032 StreamError. > > App descriptor supports v9: > > <key>MinimumOSVersion</key> > <string>9.0</string> > > Both the iPhone 4S and iPad 2 are running v9.3.5 (last supported version > for these older devices). > Captured AIR (v23) > Flex SDK v4.15 > > It seems really strange that this code would only work on iPhone 5 and > later devices... > > var address:String = _controller.baseUrl + "/auth"; > var urlRequest:URLRequest = new URLRequest(address); > urlRequest.method = URLRequestMethod.POST; > > urlRequest.idleTimeout = 16000; > URLRequestDefaults.idleTimeout = 16000; > > var header:URLRequestHeader = new URLRequestHeader("email", username.text); > urlRequest.requestHeaders.push(header); > header = new URLRequestHeader("password", password.text); > urlRequest.requestHeaders.push(header); > header = new URLRequestHeader("eventId", _controller.brandedProperties. > eventId); > urlRequest.requestHeaders.push(header) > > var urlLoader:URLLoader = new URLLoader(); > urlLoader.addEventListener(Event.COMPLETE, loginSucceeded); > urlLoader.addEventListener(IOErrorEvent.IO_ERROR, loginFailed); > urlLoader.load(urlRequest); > > Thought it could be timeout issue on slow devices so I set the idleTimeout > values to be sure. Makes no difference. > > Searched the web, found some references to 2032, but not this issue. > > Any ideas greatly appreciated. > > Erik > >