{"action":"closed","issue":{"url":"https://api.github.com/repos/atom/electron/issues/2860","labels_url":"https://api.github.com/repos/atom/electron/issues/2860/labels{/name}","comments_url":"https://api.github.com/repos/atom/electron/issues/2860/comments","events_url":"https://api.github.com/repos/atom/electron/issues/2860/events","html_url":"https://github.com/atom/electron/issues/2860","id":107547962,"number":2860,"title":"In Electron, Notifications are not clearing from Mac's Notification center. If user clicks on new notifications.","user":{"login":"Solomon-m","id":8034514,"avatar_url":"https://avatars.githubusercontent.com/u/8034514?v=3","gravatar_id":"","url":"https://api.github.com/users/Solomon-m","html_url":"https://github.com/Solomon-m","followers_url":"https://api.github.com/users/Solomon-m/followers","following_url":"https://api.github.com/users/Solomon-m/following{/other_user}","gists_url":"https://api.github.com/users/Solomon-m/gists{/gist_id}","starred_url":"https://api.github.com/users/Solomon-m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Solomon-m/subscriptions","organizations_url":"https://api.github.com/users/Solomon-m/orgs","repos_url":"https://api.github.com/users/Solomon-m/repos","events_url":"https://api.github.com/users/Solomon-m/events{/privacy}","received_events_url":"https://api.github.com/users/Solomon-m/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/atom/electron/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/atom/electron/labels/osx","name":"osx","color":"c7def8"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-21T16:19:27Z","updated_at":"2015-12-25T03:56:55Z","closed_at":"2015-12-25T03:56:55Z","body":"Hello, \r\n\r\nWhile writting a wrapper for notification for mac and windows. we found , sometimes notifications are not getting cleared from Mac Notification center.\r\n\r\nSnippets and steps are as follows:\r\n\r\n```\r\nStep 1 : \"without clicking notification\";\r\n\r\nvar notifyObject = new Notification('Title', {body:'Msg Body'});\r\nsetTimeout(function() {\r\n    console.log('Closing Notification, removing it from Mac Notification Center')\r\n    notifyObject.close();\r\n}, 3000);\r\n\r\nnotifyObject.onclick = function() {\r\n    console.warn(\"Notification has been clicked so , it wont disappear, even while calling close()\");\r\n};\r\n```\r\nAfter 3 sec notification will disappear from MAC Notify center\r\n\r\n```\r\nstep 2 : \"Clicking notification\";\r\n  a.repeat step1\r\n  b.Please click the Notification, now it won't disappear from mac notification center.\r\n  ( Note : SetTimeout will run successfully )\r\n```\r\nScreenShot: \r\n<img width=\"336\" alt=\"mac notification center\" src=\"https://cloud.githubusercontent.com/assets/8034514/9997305/0cb50dd6-60a9-11e5-9158-e4597d661224.png\">\r\n"}}