Skip to content


Subversion checkout URL

You can clone with
Download ZIP


blackberry.system - info.isPlugged is undefined in #139

ishneur opened this Issue · 5 comments

4 participants

  1. Run the attached app
  2. Click on addEventListener('batterystatus', onBatteryStatusChangeOne)
  3. Plug the device in to a power source

Expected: batterystatus event is triggered
Actual: batterystatus event is not triggered

  1. Change the battery level by charging or draining the battery (on a real device), or modify StateOfCharge in the file pps/services/power/battery on the simulator's file system

The battery level (info.level) is shown correctly, but the battery status (info.isPlugged) is undefined:

On the file system, in the file /pps/services/power/charger, the field ChargingState is missing for both simulator and real device. When I add this field on the simulator and set it to DC, then the batterystatus event is triggered and info.isPlugged becomes "true". This is probably why info.isPlugged is undefined and batterystatus is not triggered when connecting to a power source.

SCM build:
Device/simulator build:


@kwallis - the pps object seems to have changed, I doubt we can fix this in time for this release. Do you think it's gating? Wecan try to fix it today of you think it's gating.


@ishneur this has been fixed, correct?


Clearing milestone for now


Tested on and it works now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.