1

I am working on a flutter project where I need to stop receiving the push notifications when the user log out from the app but I am still receiving the notifications on the application. Any idea how to achieve it? (I am using an API for saving the device token to the server.)

1 Answers1

1

when logging out delete the token on logging in refresh the token and save this to your server

this link can help you for deleting fcm tokens

How to remove Firebase Cloud Messaging Token in Flutter

Vishal_VE
  • 1,852
  • 1
  • 6
  • 9