I\'m using Firebase console to send notifications to users. However I want to let users disable notifications. How can I disable them?
I am able to handle (and stop)
I meet the same question. I use subscribeToTopic API to subscribe the notification.
FirebaseMessaging.getInstance().subscribeToTopic("APP");
And I find the other API unsubscribeFromTopic to unsubscribe.
FirebaseMessaging.getInstance().unsubscribeFromTopic("APP");
Maybe it would be useful for APP using topic notification. It would not receive notification in foreground and background.