Skip to content

Commit

Permalink
Add welcome notification config to index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodrigo Gomez Palacio committed Jul 26, 2024
1 parent 1d1b92c commit 5743957
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions express_webpack/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@
OneSignalDeferred.push(async function(onesignal) {
await onesignal.init({
appId,
welcomeNotification: {
disable: false,
title: "Custom Welcome Notification Title",
message: "Custom Welcome Notification Message",
url: "https://example.com",
},
serviceWorkerParam: { scope: '/' + SERVICE_WORKER_PATH },
serviceWorkerPath: SERVICE_WORKER_PATH + 'OneSignalSDKWorker.js',
notifyButton: {
Expand Down

0 comments on commit 5743957

Please sign in to comment.