Notification deleteIntent does not work

前端 未结 1 688
情歌与酒
情歌与酒 2020-12-15 22:26

I\'ve read several questions concerning similair issues, but they do not provide me with the solution.

In my Android app I fire off a notification (in the Applicatio

1条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-15 22:44

    If you want to use the intent with a BroadcastReceiver, you should use PendingIntent.getBroadcast instead of PendingIntent.getService. You might also need to setup an appropriate intent filter.

    0 讨论(0)
提交回复
热议问题