# iOS 16 web push notifications in 2023

**URL:** https://meta.discourse.org/t/ios-16-web-push-notifications-in-2023/229240
**Category:** General
**Tags:** push-notifications, ios
**Created:** [June 6, 2022, 7:07pm UTC](https://meta.discourse.org/t/ios-16-web-push-notifications-in-2023/229240 "2022-06-06T19:07:04Z")
**Posts on this page:** 1
**Showing post:** 96

<div class="post-metadata">

### Author: ![dfabulich](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dfabulich/32/108716_2.png) [@dfabulich](https://meta.discourse.org/u/dfabulich)
#### Post date: [January 1, 2024, 11:36pm UTC](https://meta.discourse.org/t/ios-16-web-push-notifications-in-2023/229240/96 "2024-01-01T23:36:48Z")

</div>

Aha! I think I figured out at least one bug with this, filed in a separate thread.

> [@iOS notifications can lose permission to push if the user is currently active](https://meta.discourse.org/t/ios-notifications-can-lose-permission-to-push-if-the-user-is-currently-active/290225):
>
> iOS notifications can lose permission to push if the notification is suppressed. Discourse’s code is configured to optionally suppress notifications, and will thereby lose permission to push when this happens three times. Here’s the code for the push-notification service worker. This code has a critical bug in it, at line 178. There, the service worker checks to see if the user is active (i.e. not idle). In that case, the push event returns false without showing a notification. (It also che…

---

_[View the full topic](https://meta.discourse.org/t/ios-16-web-push-notifications-in-2023/229240)._
