0
Guys I’m trying to use Onesginal Web but it doesn’t work, appears the icon below but does nothing.
Already this all configured in the site "onesignal"
Onesignal is making a call I believe should be in trouble. This passing in Undefined url.
http://localhost/Undefined/Undefined? appid=xxxxxx
` Onesignal Push Notification
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="manifest" href="manifest.json">
<!-- <script src="https://cdn.onesignal.com/sdks/OneSignalSDKWorker.js" async="" ></script> -->
<script src="https://cdn.onesignal.com/sdks/OneSignalSDK.js" async=""></script>
<script>
var OneSignal = window.OneSignal || [];
OneSignal.push(function() {
OneSignal.init({
appId: "XXXXX-XXXXX-XXXX-XXXX",
autoRegister: false,
allowLocalhostAsSecureOrigin: true,
notifyButton: {
enable: true,
},
});
});
</script>
`