OneSignal-Website-SDK
OneSignal-Website-SDK copied to clipboard
[Question]: iOS WebPush - Does it support OneSignal's "Web Push Topic" (AKA tags in JS's Notification API)
Summary
iOS Web Push shows all notifications for a domain instead of the most recent one like other browsers for push notifications sent through OneSignal. The question is, is this a confirmed iOS Web limitation?
Details
OneSignal
OneSignal has a Web Push Topic (REST API web_push_topic) feature which allows replacing a notification already on the device with the matching value for that domain. OneSignal by default sets the same value for every notification.
JS Notification API
OneSignal uses the the Javascript Notification API Notification.tags to support this feature. See Web MDN docs on Replacing existing notifications for more details.
Related Issues
https://github.com/OneSignal/OneSignal-Website-SDK/issues/1054#issuecomment-1652808849