Running a foreground service in android kotlin to show notifications every minute through out the day using handler and runnable
Running a foreground service in android kotlin to show notifications every minute through out the day using handler and runnable .Get the notification when i run the below code but after sometime the notifications stops. If the phone is in locked state and if i unlock it ,the notification starts coming but again stops after sometime. Please help me with this.
'''
class MedTimerService : Service() {
private val FOREGROUND_NOTIFY_ID = 5051
private val TIME_GAP_FOR_NEXT_MEDICATION = 24 * 60 *...