UIDevice.current.isBatteryMonitoringEnabled value is always true

The documentation says the default value is false, yet when tested on two devices (iPhone 7 15.8; iPhone XS 17.4) the value is always true unless explicitly set to false. Is the documentation incorrect?

Answered by Frameworks Engineer in 785263022

As the state of battery monitoring for your app is process-wide, it is likely that something else running in your app requested battery monitoring before you checked the value.

Accepted Answer

As the state of battery monitoring for your app is process-wide, it is likely that something else running in your app requested battery monitoring before you checked the value.

UIDevice.current.isBatteryMonitoringEnabled value is always true
 
 
Q