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.)
Asked
Active
Viewed 1,238 times
1
-
You can use another api to, delete the token from the server & re-register on next sign in – Heshan Sandeepa Mar 01 '22 at 13:39
1 Answers
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

Vishal_VE
- 1,852
- 1
- 6
- 9