How to unsubscribe from FCM notifications after logout from app?

前端 未结 1 1427
夕颜
夕颜 2021-01-12 02:15

I have implemented Firebase cloud messaging in my app for push notifications. Everything working fine. But notifications are getting even user logged out from app.

I

相关标签:
1条回答
  • 2021-01-12 02:49

    You can delete the token, but it's better to simply cancel the subscription. How to do that, depends on how you subscribed to the updates in the first place.

    If you subscribed to a topic, you'll want unsubscribe when the user signs out.

    0 讨论(0)
提交回复
热议问题