Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement notification config #9

Open
stevenguh opened this issue Apr 9, 2020 · 0 comments
Open

Implement notification config #9

stevenguh opened this issue Apr 9, 2020 · 0 comments

Comments

@stevenguh
Copy link
Member

stevenguh commented Apr 9, 2020

Currently, notification is triggered every time when a face touching is detected; however, this can be less than ideal and can get annoying. I am proposing to have a configuration for notification.

The configuration is probably going to a dropbox that has roughy the following options:

  • No notifications
  • Every touch
  • At max every 1 minute
  • At max every 5 minute
  • At max every 10 minute
  • At max every 30 minute
  • at max every hour

For the options other than no notifications and every touch, the user will at max sees at max one notification every interval if any touch was detected. For example: if a user selected At max every 10 minutes and a user touch his face in the that 10 minute period 3 times, a notification with a message like 'You've touched your face 3 times in the past 10 minutes'.

I am thinking this would be implemented with the setInterval and query the history to get the number of times the user has touch their face in during that period.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant