Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5432] iOS: Warning messages thrown when eventlistener is called on battery state change

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2017-06-02T20:28:55.000+0000
Affected Version/sRelease 1.7.3
Fix Version/sn/a
ComponentsiOS
Labelstraining
ReporterNatalie Huynh
AssigneeIngo Muschenetz
Created2011-10-04T17:44:07.000+0000
Updated2017-06-02T20:28:55.000+0000

Description

Steps to Reproduce: 1. Launch KS > Platform > Platform Data 2. Go back out and relaunch the test again 3. Get the Alert about the battery notification. 4. View Console logs Actual Result: Sometime you will get a double alert, so dismiss it and you will see it again. Console Message: Oct 4 17:27:26 unknown UIKitApplication:com.appcelerator.titanium[0x97f8][443] : [WARN] Exception in event callback. { Oct 4 17:27:26 unknown UIKitApplication:com.appcelerator.titanium[0x97f8][443] : line = 2; Oct 4 17:27:26 unknown UIKitApplication:com.appcelerator.titanium[0x97f8][443] : message = "*** -[__NSArrayM objectAtIndex:]: index 1 beyond bounds [0 .. 0]"; Oct 4 17:27:26 unknown UIKitApplication:com.appcelerator.titanium[0x97f8][443] : sourceId = 210698176; Oct 4 17:27:26 unknown UIKitApplication:com.appcelerator.titanium[0x97f8][443] : sourceURL = "file://localhost/var/mobile/Applications/EF78A16D-3D30-4349-A893-19A9DDC848DB/KitchenSink.app/examples/platform.js"; Oct 4 17:27:26 unknown UIKitApplication:com.appcelerator.titanium[0x97f8][443] : } Expected Result: To display the alert message only once and not throw any warning message Note: Also occurred with 1.7.2

Comments

  1. Lee Morris 2017-06-02

    Closing ticket as invalid this version of Kitchen Sink is no longer supported.

JSON Source