3.4.0 iOS 获取电量jsb.device.getBatteryLevel接口无效

查找了一下native源码,

,之所以无效应该是需要
[UIDevice currentDevice].batteryMonitoringEnabled = YES ,开启电量监控,因为默认不开启的。

3赞