Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add deleteToken #107

Open
nvthuong1996 opened this issue Jan 23, 2022 · 2 comments
Open

add deleteToken #107

nvthuong1996 opened this issue Jan 23, 2022 · 2 comments

Comments

@nvthuong1996
Copy link

add deleteToken method call when user logout

@iantearle
Copy link

I think you could handle your logout yourself and add:

// Remove FCM instance
FCM.deleteInstance()
  .then(() => alert(`Token deleted`))
  .catch((err) => console.log(err));

To delete the token.

@gladwelln1
Copy link

I've tried that and it doesn't seem to work.

Even after executing await FCM.deleteInstance() you still get the same token when executing await PushNotifications.register().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants