Commit ce90c58f by Sebastián Katzer

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

parents 602fdbdd c89d3de6
...@@ -31,7 +31,7 @@ cordova plugin rm de.appplant.cordova.plugin.local-notifications ...@@ -31,7 +31,7 @@ cordova plugin rm de.appplant.cordova.plugin.local-notifications
## Release Notes ## Release Notes
#### Version 0.6.0 (not yet released) #### Version 0.6.0 (not yet released)
- Added WP8 support<br> - 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. - [enhancement:] The `add()` function now returns the id of the created notification.
- [feature:] Added new `title` property. - [feature:] Added new `title` property.
...@@ -49,7 +49,7 @@ The plugin creates the object ```window.plugin.notification.local``` with the fo ...@@ -49,7 +49,7 @@ The plugin creates the object ```window.plugin.notification.local``` with the fo
### add() ### 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> 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 ```javascript
window.plugin.notification.local.add({ window.plugin.notification.local.add({
...@@ -77,6 +77,7 @@ The method cancels all notifications which were previously added by the applicat ...@@ -77,6 +77,7 @@ The method cancels all notifications which were previously added by the applicat
window.plugin.notification.local.cancelAll(); window.plugin.notification.local.cancelAll();
``` ```
## Example ## Example
```javascript ```javascript
var now = new Date().getTime(), var now = new Date().getTime(),
...@@ -100,3 +101,9 @@ function background (id) { ...@@ -100,3 +101,9 @@ function background (id) {
console.log('I WAS IN THE BACKGROUND ID='+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.
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