How to send a request when push notification is cancelled in Android
问题 When an application receives push notification from FCM , it calls onMessageReceived . (See 1, 2 or 3.) When a user taps the notification , it launches the applications, then it sends a request to a server that the user has read the notification. I want to know when a device received a push notification, but the user swiped it (or cleared all notifications). I want to send a request to the server that the user simply cancelled the notification . I tried to send BroadcastReceiver and show logs