UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    QML Timer discrepancy when phone locks

    Scheduled Pinned Locked Moved App Development
    1 Posts 1 Posters 145 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • U Offline
        utsav
        last edited by

        On a Nexus 5 (running OTA-21) timers running when the phone locks resume "on-time" when the phone is unlocked. For example, a timer with an interval of
        one hour triggered at 9:00 will trigger again at 10:00 even if the phone is locked between 9:15 and 9:45. It will trigger again at 11:00 and so on.

        On a Pixel 3a (also running OTA-21), however, timers running when the phone locks are delayed by the time the phone is locked. In the example above, the timer would trigger at 10:30 rather than 10:00, again at 11:30 and so on.

        The above distinction holds whether or not the app is suspended when the phone is locked.

        Does anyone know why this discrepancy exists?

        I would think the behavior ought to be the same across all devices and that the behavior on the Nexus 5 is to be preferred.

        1 Reply Last reply Reply Quote 2
        • First post
          Last post