{"action":"created","issue":{"url":"https://api.github.com/repos/mrDoctorWho/ejabberd_mod_gcm/issues/4","labels_url":"https://api.github.com/repos/mrDoctorWho/ejabberd_mod_gcm/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/mrDoctorWho/ejabberd_mod_gcm/issues/4/comments","events_url":"https://api.github.com/repos/mrDoctorWho/ejabberd_mod_gcm/issues/4/events","html_url":"https://github.com/mrDoctorWho/ejabberd_mod_gcm/issues/4","id":112128617,"number":4,"title":"Instead of sending use it as a mechanism for connection","user":{"login":"bangarharshit","id":2506196,"avatar_url":"https://avatars.githubusercontent.com/u/2506196?v=3","gravatar_id":"","url":"https://api.github.com/users/bangarharshit","html_url":"https://github.com/bangarharshit","followers_url":"https://api.github.com/users/bangarharshit/followers","following_url":"https://api.github.com/users/bangarharshit/following{/other_user}","gists_url":"https://api.github.com/users/bangarharshit/gists{/gist_id}","starred_url":"https://api.github.com/users/bangarharshit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bangarharshit/subscriptions","organizations_url":"https://api.github.com/users/bangarharshit/orgs","repos_url":"https://api.github.com/users/bangarharshit/repos","events_url":"https://api.github.com/users/bangarharshit/events{/privacy}","received_events_url":"https://api.github.com/users/bangarharshit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-19T11:51:10Z","updated_at":"2015-10-20T09:26:43Z","closed_at":null,"body":"Hi, It's a great plugin especially for mobile apps where chances of your service getting killed is very high. It's not useful for offline messages since GCM is based on XMPP and will itself be offline. GCM have even more problems with a very high ping time. \r\n\r\nI wanted to see if it can be modified to signal a new message and get the xmpp reconnected. Sending offline messages through GCM have few issue since there is no roster, no jingle support and if used as signaling it will be great.  "},"comment":{"url":"https://api.github.com/repos/mrDoctorWho/ejabberd_mod_gcm/issues/comments/149491522","html_url":"https://github.com/mrDoctorWho/ejabberd_mod_gcm/issues/4#issuecomment-149491522","issue_url":"https://api.github.com/repos/mrDoctorWho/ejabberd_mod_gcm/issues/4","id":149491522,"user":{"login":"bangarharshit","id":2506196,"avatar_url":"https://avatars.githubusercontent.com/u/2506196?v=3","gravatar_id":"","url":"https://api.github.com/users/bangarharshit","html_url":"https://github.com/bangarharshit","followers_url":"https://api.github.com/users/bangarharshit/followers","following_url":"https://api.github.com/users/bangarharshit/following{/other_user}","gists_url":"https://api.github.com/users/bangarharshit/gists{/gist_id}","starred_url":"https://api.github.com/users/bangarharshit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bangarharshit/subscriptions","organizations_url":"https://api.github.com/users/bangarharshit/orgs","repos_url":"https://api.github.com/users/bangarharshit/repos","events_url":"https://api.github.com/users/bangarharshit/events{/privacy}","received_events_url":"https://api.github.com/users/bangarharshit/received_events","type":"User","site_admin":false},"created_at":"2015-10-20T09:26:43Z","updated_at":"2015-10-20T09:26:43Z","body":"I don't know what is xep-0357 used for. It states that it is useful for offline messages but I doubt if it is useful. From XEP-0357 page- Typically, these notifications are delivered to a user's mobile device, displaying a notice that can trigger opening an XMPP client to continue a conversation or answer a Jingle session request.\r\n\r\nServer can send client the pings after some time but there is no way to make it online.\r\n\r\nSending offline message via GCM is great but XMPP have way too many side effects like ack, jingle for which you need to wake up client. You send the call data - jingle via GCM but if it is just message then no point. You need to start service to pick up the call and you will get the same message again since it was never acknowledged to server (XEP-198). Again GCM is one way connection and you have to open connection in any case to continue conversation. So why not just wakeup the client and let it handle everything. Even better with we can do stream resumption. \r\n\r\nI am no XMPP expert and still trying to understand why is it like that  and what is the use of 357  - https://github.com/royneary/mod_push/issues/4\r\n\r\nLet me know if there are any issues or flaws in my understanding.\r\n\r\nThanks."}}