Toggl-button: Idle detection not triggering

Created on 12 Aug 2020  路  4Comments  路  Source: toggl/toggl-button

  • OS version: Windows 10
  • Browser version: Version 84.0.4147.105 (Official Build) (64-bit)
  • Extension version: 1.64.7

馃悰 Describe the bug

Idle detection doesn't trigger.

Expected behaviour

Idle detection should trigger if no keyboard/mouse movement has been made within the past 15 seconds as per this Slack thread: https://toggl.slack.com/archives/C9LMUPD9T/p1597261168354800

Steps to reproduce

Steps to reproduce the behaviour:

  1. Turn on idle detection
  2. Leave device alone
  3. Idle detection will never appear

Other details or context

Intercom Link

bug high

Most helpful comment

This can be closed @rylek90. I've advised the user it takes 5 minutes of idle time before they'll see the pop up. Originally I was told idle time of 15 seconds - but that was a mistake 馃槀

All 4 comments

Settings the impact to high here because it seems to be a feature that is not working at all.

After:
https://github.com/toggl/toggl-button/pull/1452
https://github.com/toggl/toggl-button/pull/1466

Notification is sent after 5 minutes of idle time. That being said, I wasn't able to reproduce this bug with following test scenario:

  • Start timer
  • Ensure your PC won't get lock/sleep after 5 minutes of idle time
  • Wait 5 minutes
  • image

Lazy man proof of concept:

Change it to be one minute:
https://github.com/toggl/toggl-button/blob/4dd4f0d9708b4f0bb3a109eb33d1020145007d1c/src/scripts/background.js#L12

https://github.com/toggl/toggl-button/blob/4dd4f0d9708b4f0bb3a109eb33d1020145007d1c/src/scripts/background.js#L20-L25

Split this to:

const left = state === 'active' && seconds > FIVE_MINUTES
const right = state === 'idle' && seconds > 0 && (seconds % FIVE_MINUTES) === 0 

if (right) { debugger }

return left || right

Repeat: start entry, do not touch mouse/keyboard for over 1 minute. Notice breakpoint being caught, notification sent.

So... either I have stupid luck and doing something wrong or we're too impatient here 馃槀

Hi @dianetoggl both me and @dpsxp weren't able to reproduce this issue finally. Keep in mind that idle detection only works if user is idle (do not touch input at all) for more than 5 minutes. 馃

This can be closed @rylek90. I've advised the user it takes 5 minutes of idle time before they'll see the pop up. Originally I was told idle time of 15 seconds - but that was a mistake 馃槀

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DenisGorbachev picture DenisGorbachev  路  4Comments

sergey-alekseev picture sergey-alekseev  路  4Comments

aeromorrison picture aeromorrison  路  3Comments

traedamatic picture traedamatic  路  3Comments

anotherbugmaster picture anotherbugmaster  路  5Comments