Commit a9d437df by Sebastián Katzer

Update README.md

parent 16a8e022
...@@ -99,13 +99,11 @@ window.plugin.notification.local.cancelAll(); ...@@ -99,13 +99,11 @@ window.plugin.notification.local.cancelAll();
## Examples ## Examples
#### Will fire every week on this day, 60 seconds from now
```javascript ```javascript
var now = new Date().getTime(), var now = new Date().getTime(),
_60_seconds_from_now = new Date(now + 60*1000); _60_seconds_from_now = new Date(now + 60*1000);
/**
* Will fire every week on this day, 60 seconds from now.
*/
window.plugin.notification.local.add({ window.plugin.notification.local.add({
id: 1, // is converted to a string id: 1, // is converted to a string
title: 'Great app!', title: 'Great app!',
...@@ -124,16 +122,12 @@ function background (id) { ...@@ -124,16 +122,12 @@ function background (id) {
console.log('I WAS IN THE BACKGROUND ID='+id) console.log('I WAS IN THE BACKGROUND ID='+id)
} }
``` ```
#### Pop's up immediately
```javascript ```javascript
/**
* Pop's up immediately
*/
window.plugin.notification.local.add({ message: 'Great app!' }); window.plugin.notification.local.add({ message: 'Great app!' });
``` ```
#### Plays no sound if the notification pop's up
```javascript ```javascript
/**
* Plays no sound if the notification pop's up
*/
window.plugin.notification.local.add({ sound: null }); window.plugin.notification.local.add({ sound: null });
``` ```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment