Defer Notification

Function to request for notification permission manually

You'll need to import the javascript file in your website before starting from this link.

window.WTN.registerNotification({
  callback: function(data){
    //data will contain the keys
  }
});

Data keys

type : (String) - registerNotification

permissionStatus : (String) - ALLOWED || NOT_ALLOWED

oneSignalPlayerId : (String) - Value if the one signal player id

firebaseToken : (String) - Value of the Firebase token

Feature taken live on 15/09/25

Last updated

Was this helpful?