1
I’m using the code of OneSignal
and I am not able to subscribe to users, because by accepting, it gives an error A bad HTTP response code (403) was received when fetching the script.
. He’ll get the file OneSignalSDKWorker.js
but still asks for my AP_ID together, even if not specifying this request, IE, asks this /OneSignalSDKWorker.js?appId=A_MINHA_APP_ID
.
Here’s the code
<link rel="manifest" href="/manifest.json" />
<script src="https://cdn.onesignal.com/sdks/OneSignalSDK.js" async=""></script>
<script>
var OneSignal = window.OneSignal || [];
OneSignal.push(function() {
OneSignal.init({
appId: "A_MINHA_APP_ID",
});
});
</script>
Did it, still the same
– I_like_trains