0

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);
});

GRiMe2D
  • 654
  • 1
  • 10
  • 22
  • Have you tried adding the listener before you send the notification? –  Jun 12 '15 at 08:46
  • of course. tried before and after sending. all events that have in PushNotificationEvent class. I see the push notification on device in notification center, but my game does not. – GRiMe2D Jun 12 '15 at 08:54
  • you are sending a notification, you are not receiving one. – BotMaster Jun 12 '15 at 12:37

0 Answers0