How to remove the notification after the particular time in android?

后端 未结 5 1975
余生分开走
余生分开走 2021-01-05 00:19

I am creating an simple android application in that created a notification.

Now i want to remove the notification if the user doesn\'t response after the particular

5条回答
  •  星月不相逢
    2021-01-05 00:47

    The current correct solution may be to use:

    NotificationCompat.Builder#setTimeoutAfter(long)

提交回复
热议问题