← Files OneSignalARCHIVED FILE

skills/setup/assets/web/init-snippet.html.tmpl

578 Bytes · Oct 3, 2026 · 06:07 UTC

↓ Download file

<!-- onesignal:managed v1 -->
<!-- Place in the page <head> (or the framework's root layout). __APP_ID__ is the
     public OneSignal App ID — safe to commit. Never put a REST/org key here. -->
<script src="https://cdn.onesignal.com/sdks/web/v16/OneSignalSDK.page.js" defer></script>
<script>
  window.OneSignalDeferred = window.OneSignalDeferred || [];
  OneSignalDeferred.push(async function (OneSignal) {
    await OneSignal.init({
      appId: "__APP_ID__",
      // allowLocalhostAsSecureOrigin: true, // ONLY for a separate localhost testing app
    });
  });
</script>

SHA-256: adaf3eadbb33f5e0c70bdb6ca13de366ce73a769b896acd4c105c8078cef0d29