Parcourir la source

Example how to cancel notification immediatly after creation

Sebastián Katzer il y a 12 ans
Parent
commit
b129a48e55
1 fichiers modifiés avec 6 ajouts et 0 suppressions
  1. 6 0
      README.md

+ 6 - 0
README.md

@@ -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