My WorkManager isn't running in foreground or background
This is the code I am using to setup the work task in my main activity:
val apiFetchBuilder = PeriodicWorkRequestBuilder(timeValue, TimeUnit.MINUTES) // timeValue = 1 for testing
val apiFetchWorker = apiFetchBuilder.build()
val instance = WorkManager.getInstance(this)
instance.enqueueUniquePeriodicWork(Constants.background_work, ExistingPeriodicWorkPolicy.KEEP, apiFetchWorker)
and then my work manager is setup as follows:
class APIWorker(context: Context, workerParams:...