Greetings,
Currently having a problem with sending HTTP requests on either Event.EXITING or Event.DEATIVATE.
Note that I'm using UIApplicationExitsOnSuspend = true as I'm currently loading packaged swfs and reloading them won't work due to "Error #3764: Reloading a SWF is not supported on this operating system.". Need to reload/refresh the swf as I'm actually opening my app through a browser link (which have parameters that change) and I'm forcing the app to close instead when user suspends the app via the home button. (Funny that the reloading of swf works in the debug fast mode )
Somehow during the exiting/deactivation event, the urlrequest doesn't push through, though i can execute non network events in less than 5 secs (checked with an infinite for-loop). I'm thinking that AIR suspends all network activities.
Is there any solution to this?
A workaround I had in mind is to set UIApplicationExitsOnSuspend = false and NativeApplication.nativeApplication.executeInBackground = true as the request pushes through but I can't exit the application as NativeApplication.nativeApplication.exit() is no-op.
Using FlashBuilder 4.7 and Air 3.6 SDK Beta (as this is the only AIR sdk that allows me to export the app in release mode as I've have actionscript code in the external package swfs)