-
Notifications
You must be signed in to change notification settings - Fork 22
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
Question: Support for IdleDetector interface exposure to ServiceWorker? #53
Comments
I don't work for a browser vendor, but:
Push Notifications that don't show visible notifications to the user are currently disallowed in all browsers, and I don't see that changing.
Polling for user presence when user has no tabs open sounds very much like intrusive tracking. |
This is a key tension that needs to be resolved. We want developers to be able to direct notifications based on user presence but don't want this to be a way for tracking user activity after they've closed the app. |
Hi @Sora2455,
I'll clarify what I was suggesting. This developer article for Idle Detection lists the following use case:
Let's say you have a PWA installed, and it has been granted either Notifications permissions (for push notifications) and/or is using Web Periodic Background Synchronization. I think based on this comment from @reillyeon that the design intentionally prohibits these types of applications (specifically, applications designed to deliver content notifications to users via service workers) from signaling their server that the user is active/idle (either before or after receipt of push notifications or background sync events):
If the intent is to exclude apps that use service worker events (while the app is "closed"), then it might be good to call that out explicitly in the specification. |
Hello!
I note that the current interface declares that IdleDetector is only exposed to Window and DedicatedWorker. Is there any consideration for exposing the IdleDetector interface to ServiceWorker? Possible use cases where this would provide value:
Thank you.
The text was updated successfully, but these errors were encountered: