{"action":"created","issue":{"url":"https://api.github.com/repos/WhisperSystems/Signal-iOS/issues/672","labels_url":"https://api.github.com/repos/WhisperSystems/Signal-iOS/issues/672/labels{/name}","comments_url":"https://api.github.com/repos/WhisperSystems/Signal-iOS/issues/672/comments","events_url":"https://api.github.com/repos/WhisperSystems/Signal-iOS/issues/672/events","html_url":"https://github.com/WhisperSystems/Signal-iOS/issues/672","id":60015292,"number":672,"title":"Messages only delivered when app in foreground","user":{"login":"devurandom","id":63082,"avatar_url":"https://avatars.githubusercontent.com/u/63082?v=3","gravatar_id":"","url":"https://api.github.com/users/devurandom","html_url":"https://github.com/devurandom","followers_url":"https://api.github.com/users/devurandom/followers","following_url":"https://api.github.com/users/devurandom/following{/other_user}","gists_url":"https://api.github.com/users/devurandom/gists{/gist_id}","starred_url":"https://api.github.com/users/devurandom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devurandom/subscriptions","organizations_url":"https://api.github.com/users/devurandom/orgs","repos_url":"https://api.github.com/users/devurandom/repos","events_url":"https://api.github.com/users/devurandom/events{/privacy}","received_events_url":"https://api.github.com/users/devurandom/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-05T21:01:58Z","updated_at":"2015-03-06T00:32:20Z","closed_at":"2015-03-06T00:32:20Z","body":"A contact of mine reports that often he will only receive messages when the app is in foreground. As long as it is in background, no messages will be delivered. I can confirm this in so far, as I only get message receipts soon before receiving his answer, which sometimes means waiting a day or two.\r\n\r\nSometimes a background push will happen, but this is very seldomly / not reproducible so far and might still take minutes. (I judge the time it needs for the message to arrive at his phone from the time until I see the delivery receipt.)"},"comment":{"url":"https://api.github.com/repos/WhisperSystems/Signal-iOS/issues/comments/77483407","html_url":"https://github.com/WhisperSystems/Signal-iOS/issues/672#issuecomment-77483407","issue_url":"https://api.github.com/repos/WhisperSystems/Signal-iOS/issues/672","id":77483407,"user":{"login":"FredericJacobs","id":400296,"avatar_url":"https://avatars.githubusercontent.com/u/400296?v=3","gravatar_id":"","url":"https://api.github.com/users/FredericJacobs","html_url":"https://github.com/FredericJacobs","followers_url":"https://api.github.com/users/FredericJacobs/followers","following_url":"https://api.github.com/users/FredericJacobs/following{/other_user}","gists_url":"https://api.github.com/users/FredericJacobs/gists{/gist_id}","starred_url":"https://api.github.com/users/FredericJacobs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FredericJacobs/subscriptions","organizations_url":"https://api.github.com/users/FredericJacobs/orgs","repos_url":"https://api.github.com/users/FredericJacobs/repos","events_url":"https://api.github.com/users/FredericJacobs/events{/privacy}","received_events_url":"https://api.github.com/users/FredericJacobs/received_events","type":"User","site_admin":false},"created_at":"2015-03-06T00:32:20Z","updated_at":"2015-03-06T00:32:20Z","body":"This is how push notifications work and the general state of backgrounding on iOS. Nothing we can do about it besides asking new APIs to Apple"}}