How to stop FCM notification in Android?

I ran into a problem in FCM. I added FCM to the Android app through the server API. Now I want to stop notifications on one device. This privilege is in the hands of the user who is using my application. But I do not know how to do this.

Thanks at Advance.

+4
source share
1 answer

You must mark the device registration ID with some user ID of that particular user on your server. Therefore, when sending a notification from the api, you can check this specific user before sending a notification.

0
source

Source: https://habr.com/ru/post/1648610/


All Articles