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

[🐛] messaging().getToken() returns old token for ANDROID device after executing messaging().deleteToken() #8030

Open
poojalivin opened this issue Sep 20, 2024 · 2 comments
Labels
blocked: customer-response plugin: messaging FCM only - ( messaging() ) - do not use for Notifications Stale type: bug New bug report

Comments

@poojalivin
Copy link

In my react native app I'm executing

    await messaging().deleteToken();

to delete token and then on log in runs

    await messaging().getToken() 

But even after deleting the previous token I'm getting the same old token from getToken().
I have seen many issues reported for IOS and have implemented some suggestions mentions in their comments like using

  await messaging().deleteToken(undefined,'*');

But it didn't work.
I'm using
"@react-native-firebase/app": "^20.5.0",
"@react-native-firebase/messaging": "^20.5.0",

Thanks.

@poojalivin poojalivin changed the title [🐛] messaging().getToken() returns old token for ANDROID after executing messaging().deleteToken() [🐛] messaging().getToken() returns old token for ANDROID device after executing messaging().deleteToken() Oct 3, 2024
@russellwheatley
Copy link
Member

Hi @poojalivin - not sure if this is on android or iOS as you mention both. Could you specify which platform you're referring to?

@russellwheatley russellwheatley added plugin: messaging FCM only - ( messaging() ) - do not use for Notifications blocked: customer-response and removed Needs Attention labels Oct 25, 2024
Copy link

Hello 👋, to help manage issues we automatically close stale issues.

This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?

This issue will be closed in 15 days if no further activity occurs.

Thank you for your contributions.

@github-actions github-actions bot added the Stale label Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked: customer-response plugin: messaging FCM only - ( messaging() ) - do not use for Notifications Stale type: bug New bug report
Projects
None yet
Development

No branches or pull requests

2 participants