Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
You should subscribe to StatusEvent with the following code
addEventListener(StatusEvent.STATUS, subscriptionFailureCallback);
and you be receiving the callback once subscription fails.
Copy link to clipboard
Copied
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!
Copy link to clipboard
Copied
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.