{"action":"closed","issue":{"url":"https://api.github.com/repos/WhisperSystems/TextSecure-Server/issues/1","labels_url":"https://api.github.com/repos/WhisperSystems/TextSecure-Server/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/WhisperSystems/TextSecure-Server/issues/1/comments","events_url":"https://api.github.com/repos/WhisperSystems/TextSecure-Server/issues/1/events","html_url":"https://github.com/WhisperSystems/TextSecure-Server/issues/1","id":24126436,"number":1,"title":"Handle cases where the push messaging system is unreliable","user":{"login":"AdamZ","id":109343,"avatar_url":"https://avatars.githubusercontent.com/u/109343?v=3","gravatar_id":"","url":"https://api.github.com/users/AdamZ","html_url":"https://github.com/AdamZ","followers_url":"https://api.github.com/users/AdamZ/followers","following_url":"https://api.github.com/users/AdamZ/following{/other_user}","gists_url":"https://api.github.com/users/AdamZ/gists{/gist_id}","starred_url":"https://api.github.com/users/AdamZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdamZ/subscriptions","organizations_url":"https://api.github.com/users/AdamZ/orgs","repos_url":"https://api.github.com/users/AdamZ/repos","events_url":"https://api.github.com/users/AdamZ/events{/privacy}","received_events_url":"https://api.github.com/users/AdamZ/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2013-12-11T18:20:23Z","updated_at":"2015-04-22T02:46:50Z","closed_at":"2015-04-22T02:46:50Z","body":"Reading over the API protocol, it doesn't seem to handle cases where the push messaging system fails. For example, someone in the [Cyanogenmod blog post comments](http://www.cyanogenmod.org/blog/whisperpush-secure-messaging-integration#comment-1156836632) brought up the fact that GCM only stores up to 100 messages before throwing them all away. If my phone is offline or out of range for a period of time, those messages could get flushed before I have a chance to receive them. There doesn't seem to be any way for the server to hold on to those messages until my phone has a data connection again.\r\n\r\nOn a somewhat similar note, APN notifications have a size limit of 256 bytes. What happens if a message is larger than this? Is is uploaded as an attachment?"}}