Ther is a
@ExperimentalUnsignedTypes
class SomeNotification : JobService() {
@SuppressLint("CommitPrefEdits")
override fun onStartJob(params: JobParameters?): Boolean {
//..
}
override fun onStopJob(params: JobParameters?): Boolean {
//..
}
}
Can I use Coroutines here, instead of Jobservice?
I also did not understood the JobService comment:
This means that you must offload your execution logic to * another thread/handler/{@link android.os.AsyncTask} of your choosing.
You can do this with
WorkManager
and
CoroutineWorker
: