Skip to main content
March 23, 2014
Question

Not accepting push notifications

  • March 23, 2014
  • 1 reply
  • 493 views

Is there another listener for when user doesn't allow the notifications the first time they open the app? something similar to:

rn.addEventListener(RemoteNotificationEvent.TOKEN, tokenEventHandler);

I am conditioning my app starting after it receibed the token, but if users don't accept the alert how can i know that?

This topic has been closed for replies.

1 reply

Adobe Employee
March 24, 2014

You should subscribe to StatusEvent with the following code

addEventListener(StatusEvent.STATUS, subscriptionFailureCallback);

and you be receiving the callback once subscription fails.

March 31, 2014

the listener never fires, or at least it does nothing, I was expecting to fire when the user doesn't accept the notifications.

Now, since the app only shows that alert the first time it installs, even if erased completely it won't show again so we can keep testing, is there a way to erase everything completely to make testing easier? thanks in advance!

Inspiring
April 1, 2014

Try restarting the device after uninstalling the app.  Sometimes there are remnants of the app still on the device until you restart the device.  I know it slows down development, but that was the only way we were able to test the same thing.