Search code examples
androidperformancebattery

How to toggle isBackgroundRestricted() as a user?


The isBackgroundRestricted() allows an app to check whether a user has enabled background restrictions for an app. As a user of the app, how/where can I change this setting?


Solution

  • This is toggled via the "Battery" section of the app "info" page in settings:

    Settings > Apps & notifications > [Choose App] > Advanced > Battery > Background restriction