{"action":"created","issue":{"url":"https://api.github.com/repos/Telerik-Verified-Plugins/PushNotification/issues/38","labels_url":"https://api.github.com/repos/Telerik-Verified-Plugins/PushNotification/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/Telerik-Verified-Plugins/PushNotification/issues/38/comments","events_url":"https://api.github.com/repos/Telerik-Verified-Plugins/PushNotification/issues/38/events","html_url":"https://github.com/Telerik-Verified-Plugins/PushNotification/issues/38","id":79544569,"number":38,"title":"Reset badge when applicationDidBecomeActive","user":{"login":"jrschifa","id":1863899,"avatar_url":"https://avatars.githubusercontent.com/u/1863899?v=3","gravatar_id":"","url":"https://api.github.com/users/jrschifa","html_url":"https://github.com/jrschifa","followers_url":"https://api.github.com/users/jrschifa/followers","following_url":"https://api.github.com/users/jrschifa/following{/other_user}","gists_url":"https://api.github.com/users/jrschifa/gists{/gist_id}","starred_url":"https://api.github.com/users/jrschifa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrschifa/subscriptions","organizations_url":"https://api.github.com/users/jrschifa/orgs","repos_url":"https://api.github.com/users/jrschifa/repos","events_url":"https://api.github.com/users/jrschifa/events{/privacy}","received_events_url":"https://api.github.com/users/jrschifa/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-22T17:43:57Z","updated_at":"2015-05-27T17:14:50Z","closed_at":"2015-05-27T17:14:50Z","body":"Sorry, this isn't an issue but more of a question. Why does the badge count get reset when the application becomes active? Wouldn't you want the badge to stick around until the count is explicitly decremented or reset?"},"comment":{"url":"https://api.github.com/repos/Telerik-Verified-Plugins/PushNotification/issues/comments/106001334","html_url":"https://github.com/Telerik-Verified-Plugins/PushNotification/issues/38#issuecomment-106001334","issue_url":"https://api.github.com/repos/Telerik-Verified-Plugins/PushNotification/issues/38","id":106001334,"user":{"login":"EddyVerbruggen","id":1426370,"avatar_url":"https://avatars.githubusercontent.com/u/1426370?v=3","gravatar_id":"","url":"https://api.github.com/users/EddyVerbruggen","html_url":"https://github.com/EddyVerbruggen","followers_url":"https://api.github.com/users/EddyVerbruggen/followers","following_url":"https://api.github.com/users/EddyVerbruggen/following{/other_user}","gists_url":"https://api.github.com/users/EddyVerbruggen/gists{/gist_id}","starred_url":"https://api.github.com/users/EddyVerbruggen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EddyVerbruggen/subscriptions","organizations_url":"https://api.github.com/users/EddyVerbruggen/orgs","repos_url":"https://api.github.com/users/EddyVerbruggen/repos","events_url":"https://api.github.com/users/EddyVerbruggen/events{/privacy}","received_events_url":"https://api.github.com/users/EddyVerbruggen/received_events","type":"User","site_admin":false},"created_at":"2015-05-27T17:14:50Z","updated_at":"2015-05-27T17:14:50Z","body":"@jrschifa It's the initial implementation (2012) which set the badge to 0. [See this code here](https://github.com/phonegap-build/PushPlugin/commit/b54a2e43b9500648efb420b31b723a7bf05b107a#diff-732fc5a465bdb88153c2676c197d8568R56).\r\n\r\nI guess Bob Easterday thought it was the 95% case which I think is quite valid. But if you need more control the `setApplicationBadgeNumber` function was added.\r\n\r\nI hope you can appreciate the fact that you gotta choose something and you can't please them all with your defaults."}}