{"action":"created","issue":{"url":"https://api.github.com/repos/saturdaymp/XPlugins.Notifications/issues/1","repository_url":"https://api.github.com/repos/saturdaymp/XPlugins.Notifications","labels_url":"https://api.github.com/repos/saturdaymp/XPlugins.Notifications/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/saturdaymp/XPlugins.Notifications/issues/1/comments","events_url":"https://api.github.com/repos/saturdaymp/XPlugins.Notifications/issues/1/events","html_url":"https://github.com/saturdaymp/XPlugins.Notifications/issues/1","id":191403292,"number":1,"title":"Add Ability to Cancel Notifications","user":{"login":"mrbiggred","id":17273852,"avatar_url":"https://avatars.githubusercontent.com/u/17273852?v=3","gravatar_id":"","url":"https://api.github.com/users/mrbiggred","html_url":"https://github.com/mrbiggred","followers_url":"https://api.github.com/users/mrbiggred/followers","following_url":"https://api.github.com/users/mrbiggred/following{/other_user}","gists_url":"https://api.github.com/users/mrbiggred/gists{/gist_id}","starred_url":"https://api.github.com/users/mrbiggred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrbiggred/subscriptions","organizations_url":"https://api.github.com/users/mrbiggred/orgs","repos_url":"https://api.github.com/users/mrbiggred/repos","events_url":"https://api.github.com/users/mrbiggred/events{/privacy}","received_events_url":"https://api.github.com/users/mrbiggred/received_events","type":"User","site_admin":false},"labels":[{"id":471734214,"url":"https://api.github.com/repos/saturdaymp/XPlugins.Notifications/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"closed","locked":false,"assignee":{"login":"mrbiggred","id":17273852,"avatar_url":"https://avatars.githubusercontent.com/u/17273852?v=3","gravatar_id":"","url":"https://api.github.com/users/mrbiggred","html_url":"https://github.com/mrbiggred","followers_url":"https://api.github.com/users/mrbiggred/followers","following_url":"https://api.github.com/users/mrbiggred/following{/other_user}","gists_url":"https://api.github.com/users/mrbiggred/gists{/gist_id}","starred_url":"https://api.github.com/users/mrbiggred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrbiggred/subscriptions","organizations_url":"https://api.github.com/users/mrbiggred/orgs","repos_url":"https://api.github.com/users/mrbiggred/repos","events_url":"https://api.github.com/users/mrbiggred/events{/privacy}","received_events_url":"https://api.github.com/users/mrbiggred/received_events","type":"User","site_admin":false},"assignees":[{"login":"mrbiggred","id":17273852,"avatar_url":"https://avatars.githubusercontent.com/u/17273852?v=3","gravatar_id":"","url":"https://api.github.com/users/mrbiggred","html_url":"https://github.com/mrbiggred","followers_url":"https://api.github.com/users/mrbiggred/followers","following_url":"https://api.github.com/users/mrbiggred/following{/other_user}","gists_url":"https://api.github.com/users/mrbiggred/gists{/gist_id}","starred_url":"https://api.github.com/users/mrbiggred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrbiggred/subscriptions","organizations_url":"https://api.github.com/users/mrbiggred/orgs","repos_url":"https://api.github.com/users/mrbiggred/repos","events_url":"https://api.github.com/users/mrbiggred/events{/privacy}","received_events_url":"https://api.github.com/users/mrbiggred/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/saturdaymp/XPlugins.Notifications/milestones/2","html_url":"https://github.com/saturdaymp/XPlugins.Notifications/milestones/0.2.0","labels_url":"https://api.github.com/repos/saturdaymp/XPlugins.Notifications/milestones/2/labels","id":2154918,"number":2,"title":"0.2.0","description":"","creator":{"login":"mrbiggred","id":17273852,"avatar_url":"https://avatars.githubusercontent.com/u/17273852?v=3","gravatar_id":"","url":"https://api.github.com/users/mrbiggred","html_url":"https://github.com/mrbiggred","followers_url":"https://api.github.com/users/mrbiggred/followers","following_url":"https://api.github.com/users/mrbiggred/following{/other_user}","gists_url":"https://api.github.com/users/mrbiggred/gists{/gist_id}","starred_url":"https://api.github.com/users/mrbiggred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrbiggred/subscriptions","organizations_url":"https://api.github.com/users/mrbiggred/orgs","repos_url":"https://api.github.com/users/mrbiggred/repos","events_url":"https://api.github.com/users/mrbiggred/events{/privacy}","received_events_url":"https://api.github.com/users/mrbiggred/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":2,"state":"open","created_at":"2016-11-23T23:26:42Z","updated_at":"2016-12-02T17:38:13Z","due_on":"2016-11-25T00:00:00Z","closed_at":null},"comments":1,"created_at":"2016-11-23T23:40:13Z","updated_at":"2016-12-02T17:38:13Z","closed_at":"2016-12-02T17:38:13Z","body":"Now that we can create notifications it would be nice to cancel them.  The cancel signature should look like:\r\n\r\n    notificationScheduler.Cancel(notificationNumber)\r\n\r\nCurrently I don't have any plans for this method to return anything or raise any errors.  If the notification exists then we will assume it will always be cancelled.  If the notification does not exist then it's technically already cancelled.\r\n\r\nTo cancel a notification in iOS 9 you need to add a unique identifier to notification.  Then loop over the notifications looking for the unique identifier and cancel it.  See the following for a object-c example:\r\n\r\nhttp://stackoverflow.com/questions/6340664/delete-a-particular-local-notification\r\n\r\nFor Android cancelling the notification can be accomplished by using the NotificationManager.Close method."},"comment":{"url":"https://api.github.com/repos/saturdaymp/XPlugins.Notifications/issues/comments/264513756","html_url":"https://github.com/saturdaymp/XPlugins.Notifications/issues/1#issuecomment-264513756","issue_url":"https://api.github.com/repos/saturdaymp/XPlugins.Notifications/issues/1","id":264513756,"user":{"login":"mrbiggred","id":17273852,"avatar_url":"https://avatars.githubusercontent.com/u/17273852?v=3","gravatar_id":"","url":"https://api.github.com/users/mrbiggred","html_url":"https://github.com/mrbiggred","followers_url":"https://api.github.com/users/mrbiggred/followers","following_url":"https://api.github.com/users/mrbiggred/following{/other_user}","gists_url":"https://api.github.com/users/mrbiggred/gists{/gist_id}","starred_url":"https://api.github.com/users/mrbiggred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrbiggred/subscriptions","organizations_url":"https://api.github.com/users/mrbiggred/orgs","repos_url":"https://api.github.com/users/mrbiggred/repos","events_url":"https://api.github.com/users/mrbiggred/events{/privacy}","received_events_url":"https://api.github.com/users/mrbiggred/received_events","type":"User","site_admin":false},"created_at":"2016-12-02T17:38:13Z","updated_at":"2016-12-02T17:38:13Z","body":"You can now cancel notifications.  Also added the find method."}}
{"actor":{"display_login":"mrbiggred"}}