Apache Cordova
  1. Apache Cordova
  2. CB-5393

Android's Online bridge sometimes doesn't work on KitKat


    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.9.0, 3.0.0
    • Fix Version/s: 3.1.0, 2.9.1
    • Component/s: Android
    • Labels:


      Here's an app /w source that can reproduce the problem consistently. I've made some tweaks to exacerbate the scenario in which it occurs. I'm fairly certain that happens when online changes back and forth too fast.

      The bug happens with & without the debugger attached.

      How to use the test app:

      • The bug is happening consistently for me on start-up and causes the page to not load correctly. If you get an alert saying that it didn't start-up, click the "Refresh Page" button at the top.
      • The bug doesn't appear on the second time (at least for me) (no alerts)
      • Click the "Benchmark exec" button and wait for it to report the bridge speed.
      • Notice that it seems to work fine
      • Now check the "Use two echos at once" box and run the test again a few times
      • Notice that you get an alert saying that no echo was received after a certain number of calls.

      The bug will not happen with the pre-KitKat WebView.

      mobilespec.zip & framework.zip have the sources.

      1. screenshot-1.jpg
        142 kB
        Angela Fowler
      2. mobilespec.zip
        4.08 MB
        Andrew Grieve
      3. framework.zip
        897 kB
        Andrew Grieve


        Angela Fowler made changes -
        Attachment screenshot-1.jpg [ 12618364 ]
        Andrew Grieve made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.9.1 [ 12325307 ]
        Fix Version/s 3.1.0 [ 12324591 ]
        Resolution Fixed [ 1 ]
        Andrew Grieve made changes -
        Field Original Value New Value
        Attachment framework.zip [ 12613926 ]
        Attachment mobilespec.zip [ 12613927 ]
        Andrew Grieve created issue -


          • Assignee:
            Andrew Grieve
            Andrew Grieve
          • Votes:
            0 Vote for this issue
            3 Start watching this issue


            • Created: