How to cancel a foreground service from using the notification (swipe dismiss) or clear all notifications?

后端 未结 6 1338
伪装坚强ぢ
伪装坚强ぢ 2020-12-05 05:23

I\'m currently creating a foreground service with a notification that appears in the notification bar when the service starts. If the service stops, the notification dismiss

6条回答
  •  北海茫月
    2020-12-05 05:45

    The notification of a foregraound service cannot be cleared. The only way is stopping the service.

    So I beleive the issue you want to solve, will never happen.

提交回复
热议问题