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 266 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

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post