Commit 7ae2981b by Sebastián Katzer

Added some new lines and fixed the wrong written function name in the example

parent c05c4e14
...@@ -41,9 +41,9 @@ Add the following xml to your config.xml to always use the latest version of thi ...@@ -41,9 +41,9 @@ Add the following xml to your config.xml to always use the latest version of thi
``` ```
or to use this exact version: or to use this exact version:
``` ```
<gap:plugin name="de.appplant.cordova.plugin.local-notification" version="0.6.2" /> <gap:plugin name="de.appplant.cordova.plugin.local-notification" version="0.6.3" />
``` ```
More informations can be found [here](https://build.phonegap.com/plugins/331). More informations can be found [here](https://build.phonegap.com/plugins/356).
## Release Notes ## Release Notes
#### Version 0.7.0 (not yet released) #### Version 0.7.0 (not yet released)
...@@ -159,21 +159,24 @@ function background (id) { ...@@ -159,21 +159,24 @@ 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 #### Pop's up immediately
```javascript ```javascript
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 #### Plays no sound if the notification pop's up
```javascript ```javascript
window.plugin.notification.local.add({ sound: null }); window.plugin.notification.local.add({ sound: null });
``` ```
#### Pass data through the notification #### Pass data through the notification
```javascript ```javascript
window.plugin.notification.local.add({ window.plugin.notification.local.add({
id: 1, id: 1,
message: 'I love BlackBerry!', message: 'I love BlackBerry!',
json: { test: 123 }, json: { test: 123 },
foreground: 'forground' foreground: 'foreground'
}); });
function foreground (id, json) { function foreground (id, json) {
...@@ -232,6 +235,7 @@ An image must be defined as a relative or absolute URI. ...@@ -232,6 +235,7 @@ An image must be defined as a relative or absolute URI.
window.plugin.notification.local.add({ image: 'appdata:ApplicationIcon.png' }) window.plugin.notification.local.add({ image: 'appdata:ApplicationIcon.png' })
``` ```
All images can be restored to the default ones by canceling the notification. All images can be restored to the default ones by canceling the notification.
### Custom repeating interval on Android ### Custom repeating interval on Android
To specify a custom interval, the `repeat` property can be assigned with an number in minutes. To specify a custom interval, the `repeat` property can be assigned with an number in minutes.
```javascript ```javascript
...@@ -245,6 +249,7 @@ window.plugin.notification.local.add({ repeat: 15 }); ...@@ -245,6 +249,7 @@ window.plugin.notification.local.add({ repeat: 15 });
## Quirks ## Quirks
### No sound is played on iOS 7 ### No sound is played on iOS 7
The right to play notification sounds in the notification center settings has to be granted. The right to play notification sounds in the notification center settings has to be granted.
### Adding a notification on WP8 ### Adding a notification on WP8
An application can only display one notification at a time. Each time a new notification has to be added, the application live tile's data will be overwritten by the new ones. An application can only display one notification at a time. Each time a new notification has to be added, the application live tile's data will be overwritten by the new ones.
...@@ -266,6 +271,7 @@ The launch mode for the main activity has to be set to `singleInstance` ...@@ -266,6 +271,7 @@ The launch mode for the main activity has to be set to `singleInstance`
<activity ... android:launchMode="singleInstance" ... /> <activity ... android:launchMode="singleInstance" ... />
``` ```
## Contributing ## Contributing
1. Fork it 1. Fork it
...@@ -274,6 +280,7 @@ The launch mode for the main activity has to be set to `singleInstance` ...@@ -274,6 +280,7 @@ The launch mode for the main activity has to be set to `singleInstance`
4. Push to the branch (`git push origin my-new-feature`) 4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request 5. Create new Pull Request
## License ## License
This software is released under the [Apache 2.0 License](http://opensource.org/licenses/Apache-2.0). This software is released under the [Apache 2.0 License](http://opensource.org/licenses/Apache-2.0).
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