non removable notification

后端 未结 4 666
别那么骄傲
别那么骄傲 2020-12-05 07:57

In my app, there is service running on background. I want to notify user that the service is running. But I need that user cannot delete the notification - by pressing clear

4条回答
  •  日久生厌
    2020-12-05 08:30

    Sound like Notification.FLAG_NO_CLEAR or Notification.FLAG_ONGOING_EVENT is what you are looking for.

提交回复
热议问题