Commit 189e6340 by Sebastián Katzer

Update README.md

parent 0a4b180a
......@@ -35,13 +35,13 @@ All settings are optional. If no date object is given, the notification will pop
To add a custom notification:
```javascript
window.plugin.notification.local.add({
date: date,// this expects a date object
date: date, // this expects a date object
message: message, // the message that is displayed
repeat: repeat, // has the options of 'weekly','daily','monthly','yearly')
badge: badge, // displays number badge to notification
badge: badge, // (only iOS) displays number badge to notification
foreground: forground, // a javascript function to be called if the app is running
background: background, // a javascript function to be called if the app is in the background
sound: sound // a sound to be played, the sound must be located in your project's resources and must be a caf file
sound: sound // (only iOS) a sound to be played, the sound must be located in your project's resources and must be a caf file
});
```
......@@ -66,10 +66,8 @@ window.plugin.notification.local.add({
date: _60_seconds_from_now,
message: 'Hello world!',
repeat: 'weekly', // will fire every week on this day
badge: 1,
foreground: 'foreground',
background: 'background',
sound: 'sub.caf'
background: 'background'
});
function foreground (id) {
......
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