Hello guys,
Adobe just released an AIR SDK version with which comes new functionalities but i ran into an issue which took me quite some time to figure out.
The issue is not observed in version 20. So I beleive that Adobe did some enablement of this issue/behavior only in Air 21.
Issue
When running application on desktop simulator which makes some HTTPService calls to any domain, it works fine. But when you deploy to app (iOS) in my case it throws error 2032 Stream HTTP Error.
Cause
The cause is limited to iOS family as iOS9 onwards, http called are not allowed by default and only https calls are allowed and Adobe just enabled the check in Air 21.
Resolution
- Change your APIs to be hosted on https
- Update your app descriptor to bypass this only for your domain.
Copying the snipped from a very old thread but a latest update.
<InfoAdditions><![CDATA[
<key>UIDeviceFamily</key>
<array>
<string>1</string>
<string>2</string>
</array>
<key>NSLocationAlwaysUsageDescription</key>
<string></string>
<key>NSLocationWhenInUseUsageDescription</key>
<string></string>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>technology.toraveabout.com</key>
<dict>
<key>NSIncludesSubdomains</key>
<true/>
<key>NSExceptionRequiresForwardSecrecy</key>
<false/>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
</dict>
</dict>
</dict>
]]></InfoAdditions>
Orignal thread post: https://forums.adobe.com/thread/766762?start=80&tstart=0
Hope it help and saves time for some of you.