'Is battery level info available while using iOS Simulator? Even sample app crashes
I have installed Battery 1.0.1 from pub but can't get it to work in iOS Simulator. I tried the example app included in the pub, and also my own simple implementation. Both work fine in Android emulator, but in iOS simulator they throw the following
Exception has occurred. PlatformException (PlatformException(UNAVAILABLE, Battery info unavailable, null))
I've googled, but can't confirm if this info is available at all in iOS simulator, so I don't know if this is a problem on my side.
Is it possible to check for battery level in the simulator at all? thank you.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
