As per the Docs-
Note: By default, these restrictions only apply to apps that target Android 8.0 (API level 26) or higher. However, users can enable most of these restrictions for any app from the Settings screen, even if the app targets an API level lower than 26.
I'm targeting Below API 26 but i cannot find the settings to enable the restriction in official android emulator.
Where is this setting available?
The setting to enable the background restriction is available in App Info -> Battery screen.
Not reproducible in emulator yet.
The option is not available when you initially install the application (targeting below API 26) until the app does some background work.
So i was able to produce it by-
Within a few minutes, the option will be available to enable the restrictions.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With