You can also create a Notification object without contents:
You can also create a Notification object without contents:
``` js
```js
varfirstNotification=newOneSignal.Notification({
varfirstNotification=newOneSignal.Notification({
content_available:true
content_available:true
});
});
...
@@ -89,21 +91,25 @@ var firstNotification = new OneSignal.Notification({
...
@@ -89,21 +91,25 @@ var firstNotification = new OneSignal.Notification({
```
```
You can set filters, data, buttons and all of the fields available on [OneSignal Documentation](https://documentation.onesignal.com/reference#create-notification)
You can set filters, data, buttons and all of the fields available on [OneSignal Documentation](https://documentation.onesignal.com/reference#create-notification)
by using `.setParameter(paramName, paramValue)` function: