OneSignal / OneSignal-Website-SDK

OneSignal is a push notification service for web and mobile apps. This SDK makes it easy to integrate your website with OneSignal Push Notifications. https://onesignal.com
Other
386 stars 116 forks source link

[Question]: Should the Launch URL setting work in iOs PWA Notifications? #1044

Open Reizoukodesu opened 1 year ago

Reizoukodesu commented 1 year ago

How can we help?

Hi, I am integrating a simple OneSignal setup to use Android and iOs PWA Push Notifications using the custom code approach. When I send Notifications manually then the notification is shown correctly, but the launch URL parameter is being ignored on iOs, Android works correctly.

The current setup looks like this:

Thank you for your feedback.

Reizoukodesu commented 1 year ago

Would it be possible to workaround the issue with Event Listeners or something similar? The ones I've identified so far in Web SDK are marked to not work on safari. Or should the feature work but my setup is messed up, thank you for your time.

rhurlbatt commented 1 year ago

I got around this using Event listeners for the 'notificationClicked' event from memory and it works in Safari as well as the other browsers. Have you tried this yet?