I was using FCM to receive push notifications for implementing the firebase.
But when the user is logged out how can I clear the tokens. So that I stop getting notifications when the user is logged out.
Because I am saving tokens to firebase and backend is using them to send push messages.
Any advice. Thanks.