![](/img/trans.png)
[英]how to manage and send notifications to multiple devices a user is logged in?
[英]How to terminate notifications when user logout
我在我的應用程序中使用本地通知集成了 Firebase 消息傳遞,當用戶 A 向用戶 B 發送好友請求時,用戶 B 會收到通知。 但問題是當用戶 B 注銷和用戶 A 向用戶 B 發送好友請求時,即使用戶 B 注銷,通知也會顯示給用戶 B。所以基本上我如何在用戶注銷時終止通知?
我不想向注銷用戶顯示通知..
提前致謝
您可以使用 FirebaseMessaging.deleteToken();
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.