{"action":"created","issue":{"url":"https://api.github.com/repos/katzer/cordova-plugin-local-notifications/issues/825","labels_url":"https://api.github.com/repos/katzer/cordova-plugin-local-notifications/issues/825/labels{/name}","comments_url":"https://api.github.com/repos/katzer/cordova-plugin-local-notifications/issues/825/comments","events_url":"https://api.github.com/repos/katzer/cordova-plugin-local-notifications/issues/825/events","html_url":"https://github.com/katzer/cordova-plugin-local-notifications/issues/825","id":125915654,"number":825,"title":"Cancel un-define id schedule","user":{"login":"phuongtailtranminh","id":12473996,"avatar_url":"https://avatars.githubusercontent.com/u/12473996?v=3","gravatar_id":"","url":"https://api.github.com/users/phuongtailtranminh","html_url":"https://github.com/phuongtailtranminh","followers_url":"https://api.github.com/users/phuongtailtranminh/followers","following_url":"https://api.github.com/users/phuongtailtranminh/following{/other_user}","gists_url":"https://api.github.com/users/phuongtailtranminh/gists{/gist_id}","starred_url":"https://api.github.com/users/phuongtailtranminh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phuongtailtranminh/subscriptions","organizations_url":"https://api.github.com/users/phuongtailtranminh/orgs","repos_url":"https://api.github.com/users/phuongtailtranminh/repos","events_url":"https://api.github.com/users/phuongtailtranminh/events{/privacy}","received_events_url":"https://api.github.com/users/phuongtailtranminh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-11T10:35:18Z","updated_at":"2016-01-11T11:11:41Z","closed_at":null,"body":"Hi,\r\n\r\nI've defined a schedule without ID, now I can't cancel this schedule\r\n\r\n                cordova.plugins.notification.local.schedule({\r\n                    text: \"Wake up!\",\r\n                    sound: \"file://sounds/alert.caf\",\r\n                    every: 30 // every 30 minutes\r\n                });\r\n\r\nI've tried this:\r\n\r\n                cordova.plugins.notification.local.cancel(0, function () {\r\n                    alert('Notification has been cancalled');\r\n                }, scope);\r\n\r\nBut the schedule is still effect!"},"comment":{"url":"https://api.github.com/repos/katzer/cordova-plugin-local-notifications/issues/comments/170510779","html_url":"https://github.com/katzer/cordova-plugin-local-notifications/issues/825#issuecomment-170510779","issue_url":"https://api.github.com/repos/katzer/cordova-plugin-local-notifications/issues/825","id":170510779,"user":{"login":"spottuit","id":9430751,"avatar_url":"https://avatars.githubusercontent.com/u/9430751?v=3","gravatar_id":"","url":"https://api.github.com/users/spottuit","html_url":"https://github.com/spottuit","followers_url":"https://api.github.com/users/spottuit/followers","following_url":"https://api.github.com/users/spottuit/following{/other_user}","gists_url":"https://api.github.com/users/spottuit/gists{/gist_id}","starred_url":"https://api.github.com/users/spottuit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spottuit/subscriptions","organizations_url":"https://api.github.com/users/spottuit/orgs","repos_url":"https://api.github.com/users/spottuit/repos","events_url":"https://api.github.com/users/spottuit/events{/privacy}","received_events_url":"https://api.github.com/users/spottuit/received_events","type":"User","site_admin":false},"created_at":"2016-01-11T11:11:41Z","updated_at":"2016-01-11T11:11:41Z","body":"If you have only one notification or don't mind to cancel all notifications you can try this:\r\n\r\n```javascript\r\ncordova.plugins.notification.local.cancelAll(callback);\r\n```"}}