- From: Jay Harris <notifications@github.com>
- Date: Sun, 21 Jul 2019 18:05:18 -0700
- To: w3ctag/design-reviews <design-reviews@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 22 July 2019 01:05:47 UTC
Sure :) Our main concern at the moment is how to indicate to the user that the service worker is running. With push notifications (and presumably we would want this to be triggerable via some kind of push) we can enforce that a notification is shown, to let the user know the app is doing something in the background. This is harder with Badging. We can enforce that the notification calls `Badge.set(...)` or `Badge.clear(...)` but this isn't enough to ensure that there is some user-visible change (and if there is, the change might be subtle enough that the user doesn't notice). For example, the service worker could continually set the badge to 5 (or `clear`) and it would not be obvious to the user that it was doing anything at all. We've got a few approaches we're considering here, including a special type of push for setting the badge which specifies the badge but doesn't let you run javascript (this is what [iOS does](https://stackoverflow.com/a/14256852/3260044)) but we're not sure how we want to jump here. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3ctag/design-reviews/issues/387#issuecomment-513605241
Received on Monday, 22 July 2019 01:05:47 UTC