tl;dr: I cannot connect to my SSL web service using a captive runtime app on Android, but I can with an AIR runtime or captive on iOS.
I'm using a common code base to develop an Android tablet and iPad app. It connects to an SSL (https) web service to get data. It works fine in debug mode, and when I compile, it works fine on the iPad, but not on the Android in a captive runtime build. If I use the AIR runtime build, it works, but I want my app to be stand-alone.
I'm having the exact same problem!
When debugging everything works. All other devices (BlackBerry and IOS) work. When I build it with the shared runtime it works. But if I build it with captive runtime it fails to connect over HTTPS! As soon as I change it to HTTP (without the S) it works so it is definately a HTTP vs HTTPS issue in combination with captive runtime.
Did you ever find a solution for this problem?
It is also not a version issue.
I tried installing the exact same version of Adobe AIR that would get bundled as captive runtime. It would work perfectly.
Then I even bundled a newer version of the AIR runtime (126.96.36.199 instead of 188.8.131.528) and still it didn't work.
In conclusion: The error only occurs when using HTTPS (SSL) in combination with captive runtime, regardless of the AIR runtime version.
Really hoping someone can solve this problem, because we would like to include the runtime to prevent our customers from installing the runtime and ensuring the correct runtime is used.
Has anyone found a solution for this issue?
I am running into this on an Air Desktop (Winodow7 and 8) application also. Then the application is compiled and packaged with a native installer or just run from the debugger my WebService calls operate normally. When I package as Captive runtime all webService request fail with a '[FaultEvent fault=[RPC Fault faultString="HTTP request error" faultCode="Server.Error.Request" faultDetail="null"] messageId="AB6FDB00-1EFA-9506-E571-5D3B71FE2865" type="fault" bubbles=false cancelable=true eventPhase=2]'.
We were able to compile an Air Desktop application with captive runtime and could still use Webserverices over SSL. Our solution might be a side effect of creating a version that requires no installation at all.
Now any user can run the application without any administrator rights normally required for installation.
Thanks for the reply. Unfortunalty I am using ANEs in my project so can not use the AIR package option. I also can't use the native installer because I need (may need) to install addtioanl code from Microsoft (vcredist_x86.exe, etc..) I think I need to speak with someone from Adobe about getting the captive runtime working correctly. I am thinking that the Air runtime that is downloaded from there web site is different from the one that is used when the Captive option is chosen.
I think I found a solution to this issue. Using latest IntelliJ 12.1 (EAP 128.101) lets you add the latest Air3.6SDK (Support for Adobe Gaming SDK) rather then the Flex SDK. Making builds through IntelliJ with captive runtime checkbox ticked, gives me an apk that when installed on my device(s) can consume ssl (https) web services. I use a ssl-certificate signed by GlobalSign on my server side and it works lika a charm since their Root CA Certificate is included by default in most devices if not all.
Europe, Middle East and Africa