You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Andrew Grieve (JIRA)" <ji...@apache.org> on 2013/11/14 21:43:21 UTC

[jira] [Resolved] (CB-5393) Android's Online bridge sometimes doesn't work on KitKat

     [ https://issues.apache.org/jira/browse/CB-5393?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Grieve resolved CB-5393.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 3.1.0
                   2.9.1

Fixed by only switching online/offline once per batch of messages.

JS Change:
https://git-wip-us.apache.org/repos/asf?p=cordova-js.git;a=commit;h=1be2876635d2a788270238c4b1cfad200c488e32

Android Change:
https://git-wip-us.apache.org/repos/asf?p=cordova-android.git;a=commit;h=166b35bc6c5977cf547f4093690d554b57cb855a

> Android's Online bridge sometimes doesn't work on KitKat
> --------------------------------------------------------
>
>                 Key: CB-5393
>                 URL: https://issues.apache.org/jira/browse/CB-5393
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.9.0, 3.0.0
>            Reporter: Andrew Grieve
>            Assignee: Andrew Grieve
>             Fix For: 2.9.1, 3.1.0
>
>         Attachments: framework.zip, mobilespec.zip
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.1#6144)