Commit 0a44a11a by Sebastián Katzer

Fixes #700 notifications appears on bootup

parent 1ddf0401
...@@ -19,6 +19,7 @@ Please also read the [Upgrade Guide](https://github.com/katzer/cordova-plugin-lo ...@@ -19,6 +19,7 @@ Please also read the [Upgrade Guide](https://github.com/katzer/cordova-plugin-lo
- Fixed #612 cannot update icon or sound (Android) - Fixed #612 cannot update icon or sound (Android)
- Fixed crashing `get(ID)` if notification doesn't exist - Fixed crashing `get(ID)` if notification doesn't exist
- Fixed #569 `getScheduled` returns two items per notification - Fixed #569 `getScheduled` returns two items per notification
- Fixed #700 notifications appears on bootup
#### Version 0.8.2 (08.11.2015) #### Version 0.8.2 (08.11.2015)
- Submitted to npm - Submitted to npm
......
...@@ -44,6 +44,8 @@ public class RestoreReceiver extends AbstractRestoreReceiver { ...@@ -44,6 +44,8 @@ public class RestoreReceiver extends AbstractRestoreReceiver {
public void onRestore (Notification notification) { public void onRestore (Notification notification) {
if (notification.isScheduled()) { if (notification.isScheduled()) {
notification.schedule(); notification.schedule();
} else {
notification.cancel();
} }
} }
......
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