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?
This is toggled via the "Battery" section of the app "info" page in settings:
Settings > Apps & notifications > [Choose App] > Advanced > Battery > Background restriction