Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16741] Android: Kindle HDX Ti.App event listeners stop responding

GitHub Issuen/a
TypeBug
PriorityHigh
StatusResolved
ResolutionHold
Resolution Date2014-08-29T20:28:08.000+0000
Affected Version/sRelease 3.2.2
Fix Version/sn/a
ComponentsAndroid
LabelsAPP-539897, core, look1, parity, supportTeam
ReporterEduardo Gomez
AssigneeAllen Yeung
Created2014-03-26T23:47:23.000+0000
Updated2017-03-24T18:24:58.000+0000

Description

Issue description

An Android Tablet Kindle HDX device running the same app, at around the 10 time alternation mark the webView event listener stops receiving the events and the webView will not receive any events.

Steps to replicate

Get example available at: https://www.dropbox.com/s/nzjhsu5as8dc1nf/MapWebViewBugExample_Remove_And_Re-addEvents.zip

Alternate clicking between the setLocation 1 and setLocation 2 buttons.

Notice that the map moves when each is hit. Perform this alternate clicking 30+ times.

Notice how the map always moves and the webView receives the "app:map:setLocation" event. This never fails on iOS and most Android Tablets.

Devices Affected by this issue:

Kindle Fire HDX 8.9 - 14.3.2.1 Model: GU045RW - 14.3.2.1 Model: GU045RW Kindle Fire HDX 7 - 13.3.1.0 - Model: C9R6QM - 13.3.2.1 - Model: C9R6QM

Devices not affected

None of iOS devices. The 2.3.4 HTC Incredible and Nexus 7 running 4.3 don't seem to exhibit the problem.

Background

This issue seems to occur very quickly on the Kindle HDX 8.9 inch (~10 events) and it is the main use case for the Google Web Map. Another Android Tablets reproduces this although not consistently.

Comments

  1. Joshua Rhinehart 2014-04-08

    Sample app was tested using: Kindle Fire HD 8.9 Model No. 3HT7G Kindle Fire HD (2012) Model No. X43Z60 Ti SDK: 3.2.1 These were the closest devices we had available, and we were not able to reproduce the problem. Buttons remained responsive well beyond 30 alternations.
  2. Travis Crist 2014-04-08

    Those devices are not Kindle HDX's as this ticket was reported on. On the [Amazon page](https://developer.amazon.com/public/solutions/devices/kindle-fire/specifications/01-device-and-feature-specifications#Feature Detection) All the Build.MODEL's of the Amazon's Kindle devices are listed. The devices that are affected by this issue are those with the Build.MODEL's: * KFAPWA * KFAPWI * KFTHWA * KFTHWI They are the only Kindle Devices affected by this issue and they are the Kindle HDX 8.9 and 7 inch devices. To access the Build.MODEL use the Titanium.Platform.model Platform property.
  3. Joshua Rhinehart 2014-04-09

    The two devices we have on hand are builds KFJWI (the 8.9" HD) and KFTT (the 7" HD). I will look into the procurement of a fitting device for this test or if we can possibly replicate this issue in an emulated setting.
  4. Daniel Fortner 2014-05-01

    The Kindle Fire HDX 7" was ordered recently to replicate this error.
  5. Joshua Rhinehart 2014-05-05

    We received the HDX 7" and were able to reproduce this issue very quickly (~2 clicks). The map is still responsive to pan events, and the buttons seem to be as well, as I see " [INFO] : app:map:setLocation Fired -> " in the console for each tap, however it seems the process breaks down somewhere else, perhaps in the process of resetting the EventListeners?
  6. Ingo Muschenetz 2014-08-27

    I don't believe this will go into 3.4.0 as the proposed fix is likely very Kindle HDX-specific. We will need to figure out how to deliver that.
  7. Allen Yeung 2014-08-28

    PR to add support for a flag to enable/disable polling: https://github.com/appcelerator/titanium_mobile/pull/5994 To toggle the creation only property (the value is true by default), do the following when creating a webview.
       Ti.UI.createWebView({
           polling: false
       });
       
  8. Allen Yeung 2014-08-29

    Placed on hold until we verify that the PR is required.

JSON Source