Skip to content

Instantly share code, notes, and snippets.

@yogasukma
Created January 5, 2017 01:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yogasukma/7cd0a2fda59c9c94ebc808fd906e9345 to your computer and use it in GitHub Desktop.
Save yogasukma/7cd0a2fda59c9c94ebc808fd906e9345 to your computer and use it in GitHub Desktop.
<script src="https://cdn.onesignal.com/sdks/OneSignalSDK.js" async='async'></script>
<script>
var OneSignal = window.OneSignal || [];
OneSignal.push(["init", {
appId: "xxxx",
subdomainName: 'zzzzz',
autoRegister: false, /* Set to true to automatically prompt visitors */
httpPermissionRequest: {
enable: true
},
notifyButton: {
enable: true /* Set to false to hide */
}
}]);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment