Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-17513

Web push notifications on Safari stop after 3 pushes

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 4.0.0-a1
    • 4.0.0-a1, 4.0.0-a2
    • Notification System
    • None

      Safari on macOS and iOS imposes strict limits on push notification delivery and service worker behavior, particularly:

      • Maximum of 3 push notifications per service worker registration.
      • If not handled correctly, Safari may terminate the service worker or stop delivering pushes after 3 messages.

      To address this in your push event handler, you must call event.waitUntil() and return a Promise that resolves only after all async operations are done.

      This ensures Safari knows the push task is still active and prevents premature termination or throttling.
      More info here: https://dev.to/progressier/how-to-fix-ios-push-subscriptions-being-terminated-after-3-notifications-39a7

            Marc Marc
            MattF Matt Friedman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: