{"action":"created","issue":{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/703","repository_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push","labels_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/703/labels{/name}","comments_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/703/comments","events_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/703/events","html_url":"https://github.com/phonegap/phonegap-plugin-push/pull/703","id":140708923,"number":703,"title":"Support android shortcut badges on supported devices when app is closed","user":{"login":"yossale","id":448002,"avatar_url":"https://avatars.githubusercontent.com/u/448002?v=3","gravatar_id":"","url":"https://api.github.com/users/yossale","html_url":"https://github.com/yossale","followers_url":"https://api.github.com/users/yossale/followers","following_url":"https://api.github.com/users/yossale/following{/other_user}","gists_url":"https://api.github.com/users/yossale/gists{/gist_id}","starred_url":"https://api.github.com/users/yossale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yossale/subscriptions","organizations_url":"https://api.github.com/users/yossale/orgs","repos_url":"https://api.github.com/users/yossale/repos","events_url":"https://api.github.com/users/yossale/events{/privacy}","received_events_url":"https://api.github.com/users/yossale/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-14T15:32:53Z","updated_at":"2016-03-14T15:43:14Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/pulls/703","html_url":"https://github.com/phonegap/phonegap-plugin-push/pull/703","diff_url":"https://github.com/phonegap/phonegap-plugin-push/pull/703.diff","patch_url":"https://github.com/phonegap/phonegap-plugin-push/pull/703.patch"},"body":"Update android shortcut badge even when app is closed (on supported devices - HTC, LG, Samsung)\r\n\r\n## Description\r\nAdding android shortcut badges support. Similarly to the [cordova-plugin-badge](https://github.com/katzer/cordova-plugin-badge) behaviour, only it works even when the app is closed, and updated from the Java, not the js. \r\n\r\n## Related Issue\r\n[\"Notification\" Event Not Firing When Closed Through App Launcher](https://github.com/phonegap/phonegap-plugin-push/issues/158)\r\n[Android badge count](https://github.com/phonegap/phonegap-plugin-push/issues/622)\r\n\r\n## Motivation and Context\r\nMost major Android Launchers now support badges, which are a useful way to keep users engaged with one's app, specially when users are not visiting it too often. However, in the current situation, badges are only updated when the app is either in the foreground/background, which is usually not the case (Specially if your app is a \"twice a week kind\" of app)\r\n\r\n## How Has This Been Tested?\r\nIt has been tested on Samsung galaxy S5, HTC X9, and One Plus (which doesnt support badges, we tested to make sure nothing breaks in that case)\r\n\r\n## Screenshots (if appropriate):\r\n\r\n\r\n## Types of changes\r\n- [X ] Bug fix (non-breaking change which fixes an issue)\r\n\r\n## Checklist:\r\n<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->\r\n<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->\r\n- [X] My code follows the code style of this project.\r\n- [X] My change requires a change to the documentation.\r\n- [] I have updated the documentation accordingly.\r\n- [X] I have read the **CONTRIBUTING** document.\r\n- [] I have added tests to cover my changes.\r\n- [ ] All new and existing tests passed.\r\n"},"comment":{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/comments/196374644","html_url":"https://github.com/phonegap/phonegap-plugin-push/pull/703#issuecomment-196374644","issue_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/703","id":196374644,"user":{"login":"macdonst","id":353180,"avatar_url":"https://avatars.githubusercontent.com/u/353180?v=3","gravatar_id":"","url":"https://api.github.com/users/macdonst","html_url":"https://github.com/macdonst","followers_url":"https://api.github.com/users/macdonst/followers","following_url":"https://api.github.com/users/macdonst/following{/other_user}","gists_url":"https://api.github.com/users/macdonst/gists{/gist_id}","starred_url":"https://api.github.com/users/macdonst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macdonst/subscriptions","organizations_url":"https://api.github.com/users/macdonst/orgs","repos_url":"https://api.github.com/users/macdonst/repos","events_url":"https://api.github.com/users/macdonst/events{/privacy}","received_events_url":"https://api.github.com/users/macdonst/received_events","type":"User","site_admin":false},"created_at":"2016-03-14T15:43:14Z","updated_at":"2016-03-14T15:43:14Z","body":"@yossale looks good but please make the required changes and squash your commits."}}