*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
varnow=newDate().getTime(),
varnow=newDate().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.