Air 3.4 iOS Push Notification is not fired when app is not running and is not in background

Hello,
I'm making an Air iOS application which uses the iOS Push Notification from Air 3.4.
All is working perfectly except when I receive notifications when the app is not running and is not in background (The app is killed).
I suppose the RemoteNotificationEvent.NOTIFICATION must be dispatched when I receive a notification even if my app is not currently running or in background ?
Do you have already get the same issue ? Do you know what can prevent the notification to be handled ?
Thanks,
Loïc

issue has been fixed in the build available at http://labs.adobe.com/downloads/air3-5.html.
You would now have to attach listener to InvokeEvent. For cases, when application is killed, InvokeEventReason will be InvokeEventReason.NOTIFICATION. The notification payload can be accessed by the following code
protected function onInvokeEvent(event:InvokeEvent):void
     trace("Invokehandler called .... \n");
     trace("reason: " + event.reason + "\n");
     if( event.reason == InvokeEventReason.NOTIFICATION)
                    var payload:Object = Object(event.arguments[0]);
          for (var i:String in payload)
                trace("Key:value pair " + i + ":" + payload[i] + "\n");
          // TODO: DO THE NEEDFUL ON RECIEVING A NOTIFICATION HERE

Similar Messages

Maybe you are looking for