setting executeInBackground = true on iOS Cannot create property error
I'm using Flash Builder 4.7, created a Flex Mobile project.
When my application deactivates, it needs to send a single POSt HTTP request to my server. It takes a few milliseconds to send, and on Android it works just fine. However, on iOS, since the app is suspended, the request is not sent until I activate the app again.
I've looked online and tried this solution:
adding the line
NativeApplication.nativeApplication.executeInBackground = true;
In the home view, or just before sending the request, raises an exception:
ReferenceError: Error #1056: Cannot create property executeInBackground on flash.desktop.NativeApplication.
at views::BnpSampleHomeView$cinit()
at global$init()
at BnpSample()
at _BnpSample_mx_managers_SystemManager/create()[_BnpSample_mx_managers_SystemManager.as:51]
at mx.managers.systemClasses::ChildManager/initializeTopLevelWindow()
at mx.managers::SystemManager/initializeTopLevelWindow()
at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::kickOff()
at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::preloader_completeHandler()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.preloaders::Preloader/timerHandler()
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()
Help is apprecaited
