ANE-Push-Notification from fresh planet won't fire events

186 views Asked by At

I'm using push notifications ane for sending local notifications. But no events are fired. I want to know, is push event got user when app was foreground, so I add event listener:

push = PushNotification.getInstance();
push.sendLocalNotification("sd", new Date().time / 1000 + 10, "title");
push.addEventListener(PushNotificationEvent.NOTIFICATION_RECEIVED_WHEN_IN_FOREGROUND_EVENT, function(e:PushNotificationEvent):void {
    trace(e);
});

0

There are 0 answers