Commit b129a48e authored by Sebastián Katzer's avatar Sebastián Katzer
Browse files

Example how to cancel notification immediatly after creation

parent f5d4d432
Loading
Loading
Loading
Loading
+6 −0
Changes for README.md: 6 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -157,6 +157,12 @@ window.plugin.notification.local.add({ message: 'Great app!' });
```javascript
window.plugin.notification.local.add({ sound: null });
```
#### Cancel notification immediatly after creation
```javascript
window.plugin.notification.local.add({ id: 1, message: 'Reminder' });
// `add` is executed asynchron!
setTimeout('plugin.notification.local.cancel(1)', 200);
```


## Platform specifics