I set up an online notification using OneSignal by reading their documentation . The following code is my configuration example.
<script>
var OneSignal = window.OneSignal || [];
OneSignal.push(["init", {
appId: "my-app-id",
safari_web_id: 'my-safari-web-id',
autoRegister: false,
notifyButton: {
enable: true
},
}]);
</script>
It works with Google Chrome and Firefox. But it doesn’t work on safari, and when I click on the “Subscribe to notifications” button, I received an error as shown below.

What is wrong with my configuration?
I am using safari Version 10.0.1 (12602.2.14.0.7)
source
share