Why battery status update after plugging the mains charger in/out takes place on the Android after tapping the touch screen?

why battery status update after plugging the mains charger in/out takes place on the Android after tapping the touch screen?
I am running my test app on Android GalaxyTab (ionic run android). You see my code at the top of this thread. How do I get debug information on the screen like console.log()… after invoking “ionic run android”

Did you remote debug the problem on the device already? Follow these instructions here to debug the problem in Chrome dev tools: https://ionic.zone/debug/remote-debug-your-app#android Look at the console and network tabs for errors.