Re: [w3c/push-api] userVisibleOnly should be standardized to match browser behaviour (#313)

Based on this information, iOS will revoke the push subscription if the application fails to show the notification.

https://meta.discourse.org/t/ios-notifications-can-lose-permission-to-push-if-the-user-is-currently-active/290225

It requires use of 
```js
self.addEventListener('push', (event) => {.
    event.waitUntil(self.registration.showNotification(pushMessageJSON.title, {
      ...
    }));
}
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/push-api/issues/313#issuecomment-2065570178
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/push-api/issues/313/2065570178@github.com>

Received on Friday, 19 April 2024 01:13:10 UTC