谷歌最近将IntentService弃用了: https://android.googlesource.com/platform/frameworks/base.git/+/6f8b09029932dfd24945202017639754b00acc2e
现在的IntentService文档如下:
* @deprecated IntentService is subject to all the
* <a href="/preview/features/background.html">background execution limits</a>
* imposed with Android 8.0 (API level 26). Consider using {@link androidx.work.WorkManager}
* or {@link androidx.core.app.JobIntentService}, which uses jobs
* instead of services when running on Android 8.0 or higher.
那么JobIntentService和WorkManager之间有什么区别,并且在哪些情况下推荐使用哪个?
谷歌甚至没有在这个页面上提到JobIntentService,他们只提到了WorkManager:https://developer.android.com/guide/background