Skip to main content
Ján_Horváth
Participating Frequently
January 14, 2015
Question

RemoteNotifier not working on 16.0.0.259

  • January 14, 2015
  • 2 replies
  • 564 views

I tried to switch SDK to 16 because of 64bit support but RemoteNotifier seems to NOT working.

Code:

if(RemoteNotifier.supportedNotificationStyles.toString() != " ") {

   var preferredStyles:Vector.<String> = new Vector.<String>();

   preferredStyles.push(NotificationStyle.ALERT);//, NotificationStyle.BADGE, NotificationStyle.SOUND);
   _subscribeOptions = new RemoteNotifierSubscribeOptions();

   _subscribeOptions.notificationStyles = preferredStyles;

   _remoteNotifier = new RemoteNotifier();

   _remoteNotifier.addEventListener(RemoteNotificationEvent.TOKEN, tokenHandler);

   _remoteNotifier.addEventListener(StatusEvent.STATUS, statusHandler);

  _remoteNotifier.subscribe(_subscribeOptions);

}

No handler is called. My app freeze because no status neither token is received.

I tried it only on iOS.

Could you help me please?

This topic has been closed for replies.

2 replies

Inspiring
January 21, 2015
Inspiring
January 20, 2015

I have also switched to the latest release of AIR SDK 16 and RemoteNotificationEvent.TOKEN is not being fired.

IT was working fine on AIR SDK 15.