{"action":"created","issue":{"url":"https://api.github.com/repos/nkzawa/socket.io-android-chat/issues/45","repository_url":"https://api.github.com/repos/nkzawa/socket.io-android-chat","labels_url":"https://api.github.com/repos/nkzawa/socket.io-android-chat/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/nkzawa/socket.io-android-chat/issues/45/comments","events_url":"https://api.github.com/repos/nkzawa/socket.io-android-chat/issues/45/events","html_url":"https://github.com/nkzawa/socket.io-android-chat/issues/45","id":168111941,"number":45,"title":"Socket Disconnect if (android) app is in background and multiple app opens ","user":{"login":"VyasMankar","id":10204194,"avatar_url":"https://avatars.githubusercontent.com/u/10204194?v=3","gravatar_id":"","url":"https://api.github.com/users/VyasMankar","html_url":"https://github.com/VyasMankar","followers_url":"https://api.github.com/users/VyasMankar/followers","following_url":"https://api.github.com/users/VyasMankar/following{/other_user}","gists_url":"https://api.github.com/users/VyasMankar/gists{/gist_id}","starred_url":"https://api.github.com/users/VyasMankar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VyasMankar/subscriptions","organizations_url":"https://api.github.com/users/VyasMankar/orgs","repos_url":"https://api.github.com/users/VyasMankar/repos","events_url":"https://api.github.com/users/VyasMankar/events{/privacy}","received_events_url":"https://api.github.com/users/VyasMankar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-28T14:37:11Z","updated_at":"2016-08-07T08:05:52Z","closed_at":null,"body":"Hi,\r\n\r\nWe developed a chat application for android using socket.io library, But we are facing one issue.\r\n\r\nWhen we kept app in background socket remains connected, even if we keep it idle for some time, socket doesn't disconnect which is fine, but the problem comes when we open any other app, socket disconnects.\r\n\r\nCan you please tell us what can be the problem & solution for that.\r\n\r\nThanks in advance..."},"comment":{"url":"https://api.github.com/repos/nkzawa/socket.io-android-chat/issues/comments/238069660","html_url":"https://github.com/nkzawa/socket.io-android-chat/issues/45#issuecomment-238069660","issue_url":"https://api.github.com/repos/nkzawa/socket.io-android-chat/issues/45","id":238069660,"user":{"login":"sanchitgarg1909","id":15670158,"avatar_url":"https://avatars.githubusercontent.com/u/15670158?v=3","gravatar_id":"","url":"https://api.github.com/users/sanchitgarg1909","html_url":"https://github.com/sanchitgarg1909","followers_url":"https://api.github.com/users/sanchitgarg1909/followers","following_url":"https://api.github.com/users/sanchitgarg1909/following{/other_user}","gists_url":"https://api.github.com/users/sanchitgarg1909/gists{/gist_id}","starred_url":"https://api.github.com/users/sanchitgarg1909/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanchitgarg1909/subscriptions","organizations_url":"https://api.github.com/users/sanchitgarg1909/orgs","repos_url":"https://api.github.com/users/sanchitgarg1909/repos","events_url":"https://api.github.com/users/sanchitgarg1909/events{/privacy}","received_events_url":"https://api.github.com/users/sanchitgarg1909/received_events","type":"User","site_admin":false},"created_at":"2016-08-07T08:05:52Z","updated_at":"2016-08-07T08:05:52Z","body":"This is probably your phone's issue. When you open multiple apps at a time, the phone clears out RAM by stopping rarely used apps. So the more RAM the phone has the less chances are of this problem to occur. To tackle this problem you could make a service which runs even when the app is removed from the background and check when the socket is disconnected."}}
{"actor":{"display_login":"sanchitgarg1909"}}