This seems like a tiny issue, but I thought I'd report it. When both Versa and Ionic emulators are set to certain battery levels, they report a different battery level to the emulator.
Setting level 29 reports 28. (See screen shot. )
Setting level 57 reports 56.
Setting level 58 reports 57.
I have verified all other battery values are correct.
In my code I am using these lines to derive the battery level:
var batlvl = Math.floor(battery.chargeLevel);
powerRow.text = batlvl;
So it could be some kind of round-off error. I also attempted to remove the Math.floor() function but received the same results. Again, not a critical issue, but something that should be documented. Thanks!

This seems like a tiny issue, but I thought I'd report it. When both Versa and Ionic emulators are set to certain battery levels, they report a different battery level to the emulator.
Setting level 29 reports 28. (See screen shot. )
Setting level 57 reports 56.
Setting level 58 reports 57.
I have verified all other battery values are correct.
In my code I am using these lines to derive the battery level:
So it could be some kind of round-off error. I also attempted to remove the Math.floor() function but received the same results. Again, not a critical issue, but something that should be documented. Thanks!