Skip to main content
Mar 23, 2014 9:19 PM UTC
Question

Not accepting push notifications

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

3 replies

Adobe Employee
Mar 24, 2014 3:36 AM UTC

You should subscribe to StatusEvent with the following code

addEventListener(StatusEvent.STATUS, subscriptionFailureCallback);

and you be receiving the callback once subscription fails.

Translate
Mar 31, 2014 3:45 PM UTC

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!

Translate
Inspiring
Apr 1, 2014 2:36 PM UTC

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.

Translate