Click on the Notification programmatically

后端 未结 2 1391
耶瑟儿~
耶瑟儿~ 2020-12-01 23:15

I trying click on the notification after receiving it.

I\'m able to drag the notification drawer using the Accessibility service.

For clicking the notifica

2条回答
  •  情话喂你
    2020-12-01 23:40

    If you want to click on the notification, you have to extend the NotificationListenerService, implement what have to be implemented then you can call sbn.getNotification().contentIntent.send(). This way is like if user was clicking on the notification from the notification tray.

提交回复
热议问题