Skip to content

Sometimes does not update timer for several minutes after initializing (Android) #81

Description

@masoodusmani

I'm using this plugin in a Cordova app using RequireJS for AMD on a Chrome 51.0.2704.81 WebView on Android, and I've had this problem sometimes where my count up timer would get initialized to 00:00 & my onTick is called once, and then the timer would not update or call onTick for several minutes, after which it'd start running with the correct time displayed. This has happened both when I loaded countdown before the module that uses it, and when it's loaded at the module that uses it.

I've tried debugging it, and found that when the issue occurs, timerCallBack() gets called as it should through rAF, ~60 times a second, but it does not trigger the if (drawStart - animationStartTime >= 1000) block until 1 to 8 minutes later.

It's possible that because of Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343 which is a warning I do get, it just doesn't run the callback at all when the if condition is satisfied. I don't know how to verify this though, since timerCallBack() itself keeps getting called, but because I've not been able to reproduce it consistently, I've not been able to confirm so far whether or not animationStartTime is getting updated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions