yigit / android-priority-jobqueue

A Job Queue specifically written for Android to easily schedule jobs (tasks) that run in the background, improving UX and application stability.
3.4k stars 395 forks source link

Android Oreo 8.0 Support ? #401

Open GulajavaMinistudio opened 7 years ago

GulajavaMinistudio commented 7 years ago

Is this library supporting new behavior changes about Background Execution Limits in Android 8.0 Oreo ? And can be integrated with JobScheduler well in Android 8.0 ?

JimVanG commented 7 years ago

You can integrate with JobScheduler there’s a wiki that shows you the simple steps: JobScheduler and GcmNetworkManager Wiki.

From the Android Oreo Developer docs:

In most cases, apps can work around these limitations by using JobScheduler jobs. This approach lets an app arrange to perform work when the app isn't actively running, but still gives the system the leeway to schedule these jobs in a way that doesn't affect the user experience.

So if you use JobScheduler your background Services/Jobs will be whitelisted, allowing your background jobs to run. Link to the dev docs: Android Developer docs on the topic

This library is amazing, honestly I don’t know what I’d do without it. But it hasn’t been updated in a LONG time. And a lot has changed in the world of Android... not just on the Android OS side, but also on the Gradle, environment, and tools side of things.

I really hope someone, anyone, will update this library to support the new Android Gradle Plugin and update to at least API 26.

Any takers? 😟

gbhall commented 7 years ago

It should be part of the support library in my opinion. On Wed, 15 Nov 2017 at 1:53 pm, James notifications@github.com wrote:

You can integrate with JobScheduler there’s a wiki that shows you the simple steps: JobScheduler and GcmNetworkManager Wiki https://github.com/yigit/android-priority-jobqueue/wiki/Integration-with-JobScheduler-and-GcmNetworkManager .

From the Android Oreo Developer docs:

In most cases, apps can work around these limitations by using JobScheduler jobs. This approach lets an app arrange to perform work when the app isn't actively running, but still gives the system the leeway to schedule these jobs in a way that doesn't affect the user experience.

So if you use JobScheduler your background Services/Jobs will be whitelisted, allowing your background jobs to run. Link to the dev docs: Android Developer docs on the topic https://developer.android.com/about/versions/oreo/background.html#overview

This library is amazing, honestly I don’t know what I’d do without it. But it hasn’t been updated in a LONG time. And a lot has changed in the world of Android... not just on the Android OS side, but also on the Gradle, environment, and tools side of things.

I really hope someone, anyone, will update this library to support the new Android Gradle Plugin and update to at least API 26.

Any takers? 😟

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/yigit/android-priority-jobqueue/issues/401#issuecomment-344493434, or mute the thread https://github.com/notifications/unsubscribe-auth/ABFvuSJn3mOTOyf6sH4PFzKczEzOQpNsks5s2nxsgaJpZM4Ph0I6 .

blinkmacalahan commented 6 years ago

I noticed this library only has targetSdkVersion 25. With Google's Accouncement mentioning 3rd party libraries to target 26 as well are there any plans to update?

biliboss commented 6 years ago

@gbhall i thought that Android Team released the Work Manager to be de default "Job Queue" solution. Because of this, @yigit had stopped the work in this lib.