# Defer Notification

{% hint style="info" %}
You'll need to import the javascript file in your website before starting from this [link](https://docs.webtonative.com/javascript-apis/getting-started).
{% endhint %}

{% tabs %}
{% tab title="Plain Javascript" %}

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

{% endtab %}

{% tab title="ES5+" %}

```javascript
import { registerNotification } from "webtonative"

registerNotification({
  callback: function(data){
     //data will contain the keys
  }
});
```

{% endtab %}
{% endtabs %}

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
