json:String,// Data to be passed through the notification
json:String,// Data to be passed through the notification
autoCancel:Boolean,// Setting this flag and the notification is automatically canceled when the user clicks it
autoCancel:Boolean,// Setting this flag and the notification is automatically canceled when the user clicks it
ongoing:Boolean,// Prevent clearing of notification (Android only)
ongoing:Boolean,// Prevent clearing of notification (Android only)
foreground:String,// A javascript function to be called if the app is running
background:String,// A javascript function to be called if the app is in the background
});
});
```
```
**Note:** On Android the notification id needs to be a string which can be converted to a number. If the ID has an invalid format, it will be ignored, but canceling the notification will fail.
**Note:** On Android the notification id needs to be a string which can be converted to a number. If the ID has an invalid format, it will be ignored, but canceling the notification will fail.
...
@@ -141,6 +140,15 @@ The method cancels all notifications which were previously added by the applicat
...
@@ -141,6 +140,15 @@ The method cancels all notifications which were previously added by the applicat
There are 4 different callback types available. For each of them one listener can be specified. The listener has to be a function and takes the following arguments: