{"action":"created","issue":{"url":"https://api.github.com/repos/andstatus/andstatus/issues/367","repository_url":"https://api.github.com/repos/andstatus/andstatus","labels_url":"https://api.github.com/repos/andstatus/andstatus/issues/367/labels{/name}","comments_url":"https://api.github.com/repos/andstatus/andstatus/issues/367/comments","events_url":"https://api.github.com/repos/andstatus/andstatus/issues/367/events","html_url":"https://github.com/andstatus/andstatus/issues/367","id":149981843,"number":367,"title":"Accumulate New Tweet Numbers in Notifications","user":{"login":"Yowlen","id":17078692,"avatar_url":"https://avatars.githubusercontent.com/u/17078692?v=3","gravatar_id":"","url":"https://api.github.com/users/Yowlen","html_url":"https://github.com/Yowlen","followers_url":"https://api.github.com/users/Yowlen/followers","following_url":"https://api.github.com/users/Yowlen/following{/other_user}","gists_url":"https://api.github.com/users/Yowlen/gists{/gist_id}","starred_url":"https://api.github.com/users/Yowlen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yowlen/subscriptions","organizations_url":"https://api.github.com/users/Yowlen/orgs","repos_url":"https://api.github.com/users/Yowlen/repos","events_url":"https://api.github.com/users/Yowlen/events{/privacy}","received_events_url":"https://api.github.com/users/Yowlen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/andstatus/andstatus/labels/Bug","name":"Bug","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/andstatus/andstatus/milestones/8","html_url":"https://github.com/andstatus/andstatus/milestones/Notifications%20enhancements","labels_url":"https://api.github.com/repos/andstatus/andstatus/milestones/8/labels","id":1236021,"number":8,"title":"Notifications enhancements","description":"","creator":{"login":"yvolk","id":207716,"avatar_url":"https://avatars.githubusercontent.com/u/207716?v=3","gravatar_id":"","url":"https://api.github.com/users/yvolk","html_url":"https://github.com/yvolk","followers_url":"https://api.github.com/users/yvolk/followers","following_url":"https://api.github.com/users/yvolk/following{/other_user}","gists_url":"https://api.github.com/users/yvolk/gists{/gist_id}","starred_url":"https://api.github.com/users/yvolk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yvolk/subscriptions","organizations_url":"https://api.github.com/users/yvolk/orgs","repos_url":"https://api.github.com/users/yvolk/repos","events_url":"https://api.github.com/users/yvolk/events{/privacy}","received_events_url":"https://api.github.com/users/yvolk/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":0,"state":"open","created_at":"2015-08-01T06:48:52Z","updated_at":"2016-04-22T18:16:59Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-04-21T06:43:34Z","updated_at":"2016-04-27T19:25:57Z","closed_at":null,"body":"Currently, every sync replaces the notifications' numbers with the numbers from the current sync. I suggest implementing a check during sync to see if the previous notification was dismissed, and if not, add the numbers together.\r\n\r\nExample:\r\nSync 1: 2 new messages are found. No notification in the tray detected, so it creates one saying 2 new messages.\r\nSync 2: 3 new messages are found. The previous notification is still in the tray, so it replaces that one saying 5 new messages. (Current behavior would overwrite saying 3 new messages.)"},"comment":{"url":"https://api.github.com/repos/andstatus/andstatus/issues/comments/215201395","html_url":"https://github.com/andstatus/andstatus/issues/367#issuecomment-215201395","issue_url":"https://api.github.com/repos/andstatus/andstatus/issues/367","id":215201395,"user":{"login":"yvolk","id":207716,"avatar_url":"https://avatars.githubusercontent.com/u/207716?v=3","gravatar_id":"","url":"https://api.github.com/users/yvolk","html_url":"https://github.com/yvolk","followers_url":"https://api.github.com/users/yvolk/followers","following_url":"https://api.github.com/users/yvolk/following{/other_user}","gists_url":"https://api.github.com/users/yvolk/gists{/gist_id}","starred_url":"https://api.github.com/users/yvolk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yvolk/subscriptions","organizations_url":"https://api.github.com/users/yvolk/orgs","repos_url":"https://api.github.com/users/yvolk/repos","events_url":"https://api.github.com/users/yvolk/events{/privacy}","received_events_url":"https://api.github.com/users/yvolk/received_events","type":"User","site_admin":false},"created_at":"2016-04-27T19:25:57Z","updated_at":"2016-04-27T19:25:57Z","body":"Actually, AndStatus tries to accumulate numbers of new tweets, but it does this in memory, i.e. it doesn't store them into a file or a database.\r\nAndroid system sometimes stops AndStatus completely and erases all its memory. This is why, I think, we often don't see new tweets, downloaded earlier...\r\n\r\nI think I will store these numbers in a Database."}}