I am using the code of OneSignal
and I am not able to subscribe users, because when accepting, it gives a A bad HTTP response code (403) was received when fetching the script.
error. It will fetch the file OneSignalSDKWorker.js
but still it asks for my APP_ID together, even if it does not specify that request, that is, it requests /OneSignalSDKWorker.js?appId=A_MINHA_APP_ID
.
Here is 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>