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

Merge branch 'master' of github.com:katzer/cordova-plugin-local-notifications

parents 602fdbdd c89d3de6
Loading
Loading
Loading
Loading
+9 −2
Changes for README.md: 9 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ cordova plugin rm de.appplant.cordova.plugin.local-notifications
## Release Notes
#### Version 0.6.0 (not yet released)
- Added WP8 support<br>
  *Based on the LiveTiles WP8 plugin made by* ***XXX***
  *Based on the LiveTiles WP8 plugin made by* ***Jesse MacFadyen (purplecabbage)***
- [enhancement:] The `add()` function now returns the id of the created notification.
- [feature:] Added new `title` property.

@@ -49,7 +49,7 @@ The plugin creates the object ```window.plugin.notification.local``` with the fo

### add()
The method allows to add a custom notification. It takes an hash as an argument to specify the notification's properties and returns the ID for the notification.<br>
All properties are optional. If no date object is given, the notification will popup immediately.
All properties are optional. If no date object is given, the notification will pop-up immediately.

```javascript
window.plugin.notification.local.add({
@@ -77,6 +77,7 @@ The method cancels all notifications which were previously added by the applicat
window.plugin.notification.local.cancelAll();
```


## Example
```javascript
var now                  = new Date().getTime(),
@@ -100,3 +101,9 @@ function background (id) {
    console.log('I WAS IN THE BACKGROUND ID='+id)
}
```


## Quirks
### Windows Phone 8.0
Windows Phone 8.0 has no notification center. Instead local notifications are realized through live tiles updates.