5

What is the correct way to invalidate a firebase token on react-native-firebase when user logs out?

Firebase's deleteInstanceId isn't available in react-native-firebase.

In the Github issues, the following method was suggested: firebase.iid().delete() However, after using this method once, I wasn't able to get the user to continue receiving notifications (using a newly generated firebase token) -- and the only way to start receiving firebase messages again, was to delete the app

This behavior happened on both iOS and Android.

The reason I want to invalidate the token upon logout -- is to make sure that this device will not receive notifications that are only intended for the user to see when logged-in

Shibl
  • 101
  • 6

0 Answers0