Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-403] Batter State problems on Platform API

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:52:56.000+0000
Affected Version/sn/a
Fix Version/s0.9.2
ComponentsiOS
Labelsn/a
ReporterNolan Wright
AssigneeJeff Haynie
Created2011-04-15T02:28:45.000+0000
Updated2011-04-17T01:52:56.000+0000

Description

Battery state event does not seem to fire and the battery level is always -1.

Platform = Platform Data (platform.js)

Comments

  1. Jeff Haynie 2011-04-15

    i've improved upon this.

    note, to test the battery state change events, you'll have to test a little differently. the battery state/level on changes at 5% increments. i was able to trigger by doing this...

    open up the platform tab and the platform test and leave that screen open. go to the remote video test and let it play for a little bit (you may have to play a couple of times). this should drain the battery. you should eventually see an alert with notification of battery change.

JSON Source