OneSignal-Website-SDK
OneSignal-Website-SDK copied to clipboard
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
### What happened? `OneSignal.Notifications.permission` and `OneSignal.Notifications.permissionNative` are only updated _after_ event `permissionChange` is fired, so the following example outputs two different permissions: ``` OneSignal.Notifications.addEventListener('permissionChange', function(permission) { console.log(permission); console.log(OneSignal.Notifications.permission); }); ```...
### What happened? On button click we call `OneSignal.User.PushSubscription.optIn()`, after that the `OneSignal.User.PushSubscription` _change_ event is fired twice: 1. The first time `current.id` and `current.token` only have changed from `undefined`...
### What happened? getJWTHeader literally isn't called anywhere. Just search the repo. That's the only place that sets the Authorization header required by Identity Verification. so Identity Verification is not...
## 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...
### What happened? During out tests we logged in with the same user on different devices. When logging in for the first time on a new device, languages of all...
### How can we help? After a user logs in we want to initialize this user: 1) set an extra user alias, 2) set user language and 3) add multiple...
### How can we help? I have a web app that is saved to the homescreen of an Android and ios device. The click url is set to a url...
### 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...
I'm using Onesignal push notification to send message. But for now even if user has opened the website it will show the notification. Is there any way to hide it?...
# Description ## 1 Line Summary Adds support for Safari 16 (VAPID). ## Details Safari 16 is introducing the standard [PushAPI ](https://developer.apple.com/documentation/usernotifications/sending_web_push_notifications_in_safari_and_other_browsers)that Chrome, Firefox, and other browsers use today. Safari...