OneSignal-Website-SDK icon indicating copy to clipboard operation
OneSignal-Website-SDK copied to clipboard

[Question]: iOS WebPush - Does it support OneSignal's "Web Push Topic" (AKA tags in JS's Notification API)

Open jkasten2 opened this issue 2 years ago • 0 comments

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

jkasten2 avatar Aug 19 '23 21:08 jkasten2