react-native-firebase
react-native-firebase copied to clipboard
[🐛] messaging().getToken() returns old token for ANDROID device after executing messaging().deleteToken()
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.