I have implemented a NotificationListenerService that runs in the background.
From this services onNotificationPosted method, I would like to be able to queue work to happen in 2 minutes time.
What is the best way to go about this?
Both JobScheduler and Workmanager have a minimum interval of 15 minutes. Because I already have a background service running, I don't think I really need to use those, correct?
Could I just use something like a TimerTask, or even a sleep in my onNotificationPosted method?