On further investigation it seems that:
If the device is not connected to the debugger, case (2) above applies i.e. when the app is resumed it gets a notification if the state is different than when it was suspended.
If the device is connected to the debugger (wirelessly), case 3 or 4 applies, i.e. I see the events in real-time in the debugger console.
The important thing is that I don't need to do anything special when the app resumes in order to know the current battery state.
Please let me know if you think this is wrong.
Topic:
App & System Services
SubTopic:
General
Tags: