My android application doesn't run the workmanager when I killed the application. The workmanager stop working when the application process killed.
my code is :
PeriodicWorkRequest workRequest =
new PeriodicWorkRequest.Builder(UploadWorker.class, 1, TimeUnit.MINUTES)
.setConstraints(constraints)
.build();
WorkManager.getInstance().enqueue(workRequest);
and I have also applied Jobscheduler but the program is working when application still alive in the process. but when the application closed the workmanager is not working. I have set the periodic time is 1 min.