diff --git a/src/android/BatteryListener.java b/src/android/BatteryListener.java index d737b71..979fbcf 100755 --- a/src/android/BatteryListener.java +++ b/src/android/BatteryListener.java @@ -71,7 +71,8 @@ public void onReceive(Context context, Intent intent) { updateBatteryInfo(intent); } }; - webView.getContext().registerReceiver(this.receiver, intentFilter); + Intent batteryStatus = webView.getContext().registerReceiver(this.receiver, intentFilter); + updateBatteryInfo(batteryStatus); } // Don't return any result now, since status results will be sent when events come in from broadcast receiver