Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IntentService deprecated in Android 11 #1076

Open
barbeau opened this issue Jul 6, 2021 · 0 comments · May be fixed by #1161
Open

IntentService deprecated in Android 11 #1076

barbeau opened this issue Jul 6, 2021 · 0 comments · May be fixed by #1161
Labels
Milestone

Comments

@barbeau
Copy link
Member

barbeau commented Jul 6, 2021

Summary:

https://developer.android.com/guide/components/services says:

The Android framework also provides the IntentService subclass of Service that uses a worker thread to handle all of the start requests, one at a time. Using this class is not recommended for new apps as it will not work well starting with Android 8 Oreo, due to the introduction of Background execution limits. Moreover, it's deprecated starting with Android 11. You can use JobIntentService as a replacement for IntentService that is compatible with newer versions of Android.

Maybe this could be related to #977?

Steps to reproduce:

Look at code

Expected behavior:

IntentService is deprecated and we should review alternatives

Observed behavior:

We use IntentService in:
https://github.com/OneBusAway/onebusaway-android/blob/6cd597042d61fe262888b0d8b8e4ed3ede6ecaf9/onebusaway-android/src/main/java/org/onebusaway/android/directions/realtime/RealtimeService.java

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant