Detect background battery restriction

Viewed 127

enter image description hereUnder battery settings for a given app, a user can restrict background battery usage. Is there a way to programmatically determine if the user has turned on this setting for my app? Note: This is not the same as Battery optimization...the feature just arrived in Android P.

0 Answers
Related