I was creating an android notification app which gives notification every 15 minutes after the alarm has been set.
it calls first time, and shows notification but workmanager not calling every 15 minutes.
val myWorkRequest = PeriodicWorkRequestBuilder<ReminderWorker>(15, TimeUnit.MINUTES).build()
WorkManager.getInstance(applicationContext)
.enqueueUniquePeriodicWork("work", ExistingPeriodicWorkPolicy.REPLACE, myWorkRequest)
AlarmManager
instead ofWorkManager
. – Oshaughnessy