react-native-notifications icon indicating copy to clipboard operation
react-native-notifications copied to clipboard

How to undo `Notifications.registerRemoteNotifications()` ?

Open zabojad opened this issue 2 years ago • 3 comments

I do not see any API to undo Notifications.registerRemoteNotifications(). How to do that?

zabojad avatar Feb 06 '24 09:02 zabojad

Once we've registered, seems that await Notifications.isRegisteredForRemoteNotifications(); will always return true then...

zabojad avatar Feb 08 '24 16:02 zabojad

I'm really surprised no one else has needed this at some point 🤔...

zabojad avatar Feb 17 '24 21:02 zabojad

I also need that. I though Notifications.ios.abandonPermissions(); would to the job for iOS, but it does not seem too.

It is quite annoying, when developping an app, because one would certainly test the registration procedure before having set the entire flow to send the token to the backend and deal with it.

In my case I just wanted to see what this token looked like, and especially its type :/

I am trying actually to clean everything and build again the project, I hope it will unregister 😅

Sayah-Sel avatar May 04 '24 17:05 Sayah-Sel

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar Jan 31 '25 22:01 stale[bot]

The issue has been closed for inactivity.

stale[bot] avatar Feb 24 '25 23:02 stale[bot]