Note 1 :- To make this sample work make sure you have added below changes to your IntentReceiver Tag present inside "config.xml".
1. EnableReceiver set to "1"
2. IntentAction set to "android.intent.action.BATTERY_CHANGED"
Note 2 :- Battery level change required to receive the Broadcast message.