{"action":"created","issue":{"url":"https://api.github.com/repos/QuickBlox/quickblox-ios-sdk/issues/578","repository_url":"https://api.github.com/repos/QuickBlox/quickblox-ios-sdk","labels_url":"https://api.github.com/repos/QuickBlox/quickblox-ios-sdk/issues/578/labels{/name}","comments_url":"https://api.github.com/repos/QuickBlox/quickblox-ios-sdk/issues/578/comments","events_url":"https://api.github.com/repos/QuickBlox/quickblox-ios-sdk/issues/578/events","html_url":"https://github.com/QuickBlox/quickblox-ios-sdk/issues/578","id":172259782,"number":578,"title":"Notification badge count for QBChatMessage & QBMEvent","user":{"login":"aperotech","id":11960570,"avatar_url":"https://avatars.githubusercontent.com/u/11960570?v=3","gravatar_id":"","url":"https://api.github.com/users/aperotech","html_url":"https://github.com/aperotech","followers_url":"https://api.github.com/users/aperotech/followers","following_url":"https://api.github.com/users/aperotech/following{/other_user}","gists_url":"https://api.github.com/users/aperotech/gists{/gist_id}","starred_url":"https://api.github.com/users/aperotech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aperotech/subscriptions","organizations_url":"https://api.github.com/users/aperotech/orgs","repos_url":"https://api.github.com/users/aperotech/repos","events_url":"https://api.github.com/users/aperotech/events{/privacy}","received_events_url":"https://api.github.com/users/aperotech/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/QuickBlox/quickblox-ios-sdk/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-20T07:56:32Z","updated_at":"2016-09-23T07:28:32Z","closed_at":null,"body":"**Environment details**\r\niOS 8+ , Quickblox iOS SDK version v2.7.2\r\n\r\nThis is a question involving  QBChatMessage and QBMEvent and managing badge count in iOS.\r\n\r\nWe are using both Chat & Push Notification services in our app. I understand - \r\n1. Different options available to set the badge count in Chat (1, unread count, none)\r\n2. Setting the iOS_badge parameter in QBMEvent \r\n\r\nIs there a way for us to manage both together so that the correct badge count is shown? As an example - \r\n1. I receive an event, having a badge of 1.\r\n2. I receive 3 chat messages, having badge value 3. **Total badge count should now be 4** , however, it gets overridden to 3. \r\n\r\nAny thoughts on this will be appreciated. Thanks.\r\n\r\n \r\n"},"comment":{"url":"https://api.github.com/repos/QuickBlox/quickblox-ios-sdk/issues/comments/249121983","html_url":"https://github.com/QuickBlox/quickblox-ios-sdk/issues/578#issuecomment-249121983","issue_url":"https://api.github.com/repos/QuickBlox/quickblox-ios-sdk/issues/578","id":249121983,"user":{"login":"Raikerian","id":8850270,"avatar_url":"https://avatars.githubusercontent.com/u/8850270?v=3","gravatar_id":"","url":"https://api.github.com/users/Raikerian","html_url":"https://github.com/Raikerian","followers_url":"https://api.github.com/users/Raikerian/followers","following_url":"https://api.github.com/users/Raikerian/following{/other_user}","gists_url":"https://api.github.com/users/Raikerian/gists{/gist_id}","starred_url":"https://api.github.com/users/Raikerian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Raikerian/subscriptions","organizations_url":"https://api.github.com/users/Raikerian/orgs","repos_url":"https://api.github.com/users/Raikerian/repos","events_url":"https://api.github.com/users/Raikerian/events{/privacy}","received_events_url":"https://api.github.com/users/Raikerian/received_events","type":"User","site_admin":false},"created_at":"2016-09-23T07:28:32Z","updated_at":"2016-09-23T07:28:32Z","body":"Hi,\r\n\r\nIf you are using [automatic chat alerts](http://quickblox.com/developers/Chat#Alerts) it will always override your current badge to number of unread messages on server."}}
{"actor":{"display_login":"Raikerian"}}