# android

Aditya Verma

06/22/2023, 6:05 AM
Hello everyone, currently I've implemented broadcast listener using manifest to listen to broadcasts even when my app isn't running and upon receiving a broadcast which are sent by another app when running in intervals of 5 minutes. Now what I want to do is that if a broadcast isn't received within 5 minutes, a notification (for the first time only) should be sent to the user, even if my app isn't running. How can I achieve it in Koltin? Thanks for your time. Any help would be appreciated.
not kotlin but kotlin colored 7


06/22/2023, 6:25 AM
Try the alarmmanager API, the timing accuracy won't be exact but might be reasonable for your App needs. An alternative could be the work manager but I think 15 min is the minimal interval for periodic tasks
📌 1
🙇 1