4 Replies Latest reply: Jan 8, 2013 9:33 AM by Mike Bresnahan RSS

    ViewNavigatorApplication.pushView delayed when in the background on iOS

    Mike Bresnahan Community Member

      I have a Flex Mobile app that uses an iOS native extension to allow it to run in the background using the "voip" background mode. When I recieve a certain message via a native socket, I push a view onto the stack using ViewNavigatorApplication.pushView. All is well when the app is in the foreground. However, when it is in the background the call to ViewNavigatorApplication.pushView does not result in the new view being created immediately, i.e. its creationComplete event is not fired. When I bring the app to the foreground by clicking on its icon, the creationComplete event is immediately fired. It acts as though the creation of the view is put on a queue until the app comes to the foreground. What is up with that? Is the Adobe AIR gui event processor in a sleep state when the app is in the background? Other events are fired and processed as per normal, so I know that AIR is "alive". I've only seen this behavior with ViewNavigatorApplication.pushView. Note also that I don't see this behavior on Android. On Android the view is created regardless of wether the app is in the foreground or background.

       

      I think I can work around this behavior on iOS, but I would like to fully understand it.

       

      Any help would be greatly appreciated.