iOS FCM - How can we stop from getting FCM remote messages after user has logout?

Viewed 1310

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.

0 Answers
Related