Commit f9987b7b authored by Sebastián Katzer's avatar Sebastián Katzer
Browse files

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

parent a386b264
Loading
Loading
Loading
Loading
+5 −2
Changes for README.md: 5 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -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.
+4 −0
Changes for src/android/ReceiverActivity.java: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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());
        }
    }
}