isIgnoringBatteryOptimizations is always false even when the app has the “allow background usage” or “don’t optimize” setting enabled
On most phones PowerManager.isIgnoringBatteryOptimizations()
is working correctly but on a few phones the value is always false
even when the user has manually selected allow background usage
or don't optimize
under battery settings for the app.
isIgnoringBatteryOptimizations is always false even when the app has the “allow background usage” or “don’t optimize” setting enabled
On most phones PowerManager.isIgnoringBatteryOptimizations()
is working correctly but on a few phones the value is always false
even when the user has manually selected allow background usage
or don't optimize
under battery settings for the app.