Skip to content

API 26 Compatibility: Comply with background execution limits #4883

Description

@mikehardy

This is an enhancement request but any move to targetSdk of API 26 will be blocked until it is implemented

Applications that target API 26 have background execution limits applied to them.

It is no longer allowed to start an IntentService in the background.

Migration to JobIntentService from the compat library is the likely path to achieve compatibility

https://developer.android.com/reference/android/support/v4/app/JobIntentService.html
(background reading here: https://developer.android.com/about/versions/oreo/background.html#services)

It is not quite as easy as simply altering BootService to extend JobIntentService and changing the work method signature there - a second-level issue in AnkiDroidApp.java:204 is seen after this where the instantiation takes place.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions