Skip to main content
Ján_Horváth
Participating Frequently
Jan 14, 2015 10:37 AM UTC
Question

RemoteNotifier not working on 16.0.0.259

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 is closed to new replies. Start a new post to keep the conversation going.

2 replies

Inspiring
Jan 21, 2015 8:43 AM UTC
Inspiring
Jan 20, 2015 2:13 PM UTC

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.

Translate