How to use Notification.deleteIntent

后端 未结 4 2130

I\'m trying to detect when my notification gets cleared. My question directly refers to this answer which outlines what I\'m suppose to do. This is how I\'m implementing the

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-14 10:25

    What you need to do is register a BroadcastReceiver (probably in your AndroidManifest.xml or alternatively using registerReceiver in a Service) and then set deleteIntent to be an Intent that will be caught by that receiver.

提交回复
热议问题