|
|
@@ -36,7 +36,7 @@ cordova plugin rm de.appplant.cordova.plugin.local-notifications
|
|
|
|
|
|
## Release Notes
|
|
|
#### Version 0.6.1 (not yet released)
|
|
|
-- [feature:] Sound can be specified under Android.
|
|
|
+- [feature:] Sound can be specified on Android.
|
|
|
- [enhancement:] Adding notifications on Android does not block the ui thread anymore.
|
|
|
- [bugfix:] The app did stop/crash after removing them from recent apps list.
|
|
|
- [enhancement:] Adding notifications on iOS does not block the ui thread anymore.
|
|
|
@@ -46,9 +46,9 @@ cordova plugin rm de.appplant.cordova.plugin.local-notifications
|
|
|
*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.
|
|
|
-- [bugfix:] `cancel` under iOS did not work do to wrong dict key.
|
|
|
-- [enhancement:] All notifications under Android display the app icon by default.
|
|
|
-- [feature:] Icon can be specified under Android.
|
|
|
+- [bugfix:] `cancel` on iOS did not work do to wrong dict key.
|
|
|
+- [enhancement:] All notifications on Android display the app icon by default.
|
|
|
+- [feature:] Icon can be specified on Android.
|
|
|
|
|
|
#### Version 0.4.0 (06.10.2013)
|
|
|
- Added Android support<br>
|
|
|
@@ -119,7 +119,7 @@ function background (id) {
|
|
|
|
|
|
|
|
|
## Platform specifics
|
|
|
-### Notification icon under Android
|
|
|
+### Notification icon on Android
|
|
|
By default all notifications will display the app icon. But an specific icon can be defined through the `icon` property.
|
|
|
```javascript
|
|
|
/**
|
|
|
@@ -133,7 +133,7 @@ window.plugin.notification.local.add({ icon: 'ic_launcher' });
|
|
|
window.plugin.notification.local.add({ icon: 'ic_dialog_email' });
|
|
|
```
|
|
|
|
|
|
-### Notification sound under Android
|
|
|
+### Notification sound on Android
|
|
|
The default sound is `RingtoneManager.TYPE_NOTIFICATION`. But an specific sound can be defined through the `sound` property.<br>
|
|
|
The sound must be a absolute or relative Uri pointing to the sound file.
|
|
|
```javascript
|
|
|
@@ -153,7 +153,7 @@ window.plugin.notification.local.add({ sound: 'TYPE_ALARM' });
|
|
|
window.plugin.notification.local.add({ sound: null });
|
|
|
```
|
|
|
|
|
|
-### Notification sound under iOS
|
|
|
+### Notification sound on iOS
|
|
|
The sound must be located in your project's resources and must be a caf file.
|
|
|
```javascript
|
|
|
/**
|
|
|
@@ -163,7 +163,7 @@ window.plugin.notification.local.add({ sound: 'sub.caf' });
|
|
|
```
|
|
|
**Note:** The right to play notification sounds in the notification center settings has to be granted.
|
|
|
|
|
|
-### LiveTile background images under WP8
|
|
|
+### LiveTile background images on WP8
|
|
|
LiveTile's have the ability to display images for different sizes. These images can be defined through the `smallImage`, `image` and `wideImage` properties.<br>
|
|
|
An image must be defined as a relative or absolute URI.
|
|
|
```javascript
|
|
|
@@ -178,10 +178,10 @@ All images can be restored to the default ones by canceling the notification.
|
|
|
## Quirks
|
|
|
### No sound is played on iOS 7
|
|
|
The right to play notification sounds in the notification center settings has to be granted.
|
|
|
-### Adding a notification under 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.
|
|
|
|
|
|
-### Canceling a notification under WP8
|
|
|
+### Canceling a notification on WP8
|
|
|
The methods `cancel` and `cancelAll` have the same effect.
|
|
|
|
|
|
|