How to stop android notification ringtone after 30 seconds?

前端 未结 3 1919
难免孤独
难免孤独 2021-02-04 12:26

I\'m writing an app that notifies a user of very time sensitive information, and I think a lot of them would want to use a phone ringtone instead of just the short notification

3条回答
  •  无人共我
    2021-02-04 12:46

    An simple workaround would be to cancel the notification after 30 secs and create a new one.

    You could even clone the original Notification and just remove the ring-tone for the new one.

提交回复
热议问题