Commit f9987b7b by Sebastián Katzer

`oncancel` wasnt fired if `autoCancel` was set to true (#77)

parent a386b264
......@@ -41,11 +41,14 @@ Add the following xml to your config.xml to always use the latest version of thi
```
or to use this exact version:
```
<gap:plugin name="de.appplant.cordova.plugin.local-notification" version="0.6.3" />
<gap:plugin name="de.appplant.cordova.plugin.local-notification" version="0.7.0" />
```
More informations can be found [here](https://build.phonegap.com/plugins/356).
More informations can be found [here](https://build.phonegap.com/plugins/413).
## Release Notes
#### Version 0.7.1 (not yet released)
- [bugfix:] `oncancel` wasnt fired if `autoCancel` was set to true.
#### Version 0.7.0 (22.01.2014)
**Note:** The new way of callback registration will be not compatible with previous versions! See #62
- [feature:] Added new callback registration interface and new callback types.
......
......@@ -66,5 +66,9 @@ public class ReceiverActivity extends Activity {
*/
private void fireClickEvent (Options options) {
LocalNotification.fireEvent("click", options.getId(), options.getJSON());
if (options.getAutoCancel()) {
LocalNotification.fireEvent("cancel", options.getId(), options.getJSON());
}
}
}
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