{"action":"created","issue":{"url":"https://api.github.com/repos/Redth/GCM.Client/issues/2","labels_url":"https://api.github.com/repos/Redth/GCM.Client/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/Redth/GCM.Client/issues/2/comments","events_url":"https://api.github.com/repos/Redth/GCM.Client/issues/2/events","html_url":"https://github.com/Redth/GCM.Client/issues/2","id":29426806,"number":2,"title":"GCM Client does not receive notifications when app is not running","user":{"login":"bpress","id":5276671,"avatar_url":"https://avatars.githubusercontent.com/u/5276671?v=3","gravatar_id":"","url":"https://api.github.com/users/bpress","html_url":"https://github.com/bpress","followers_url":"https://api.github.com/users/bpress/followers","following_url":"https://api.github.com/users/bpress/following{/other_user}","gists_url":"https://api.github.com/users/bpress/gists{/gist_id}","starred_url":"https://api.github.com/users/bpress/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bpress/subscriptions","organizations_url":"https://api.github.com/users/bpress/orgs","repos_url":"https://api.github.com/users/bpress/repos","events_url":"https://api.github.com/users/bpress/events{/privacy}","received_events_url":"https://api.github.com/users/bpress/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-03-14T11:28:43Z","updated_at":"2015-04-17T09:38:41Z","closed_at":null,"body":"Hi.\r\nIt seems I'm stuck with this problem: when the app is active or in the background (i.e. it is listed among the active processes), the library works fine.\r\n\r\nWhere the app is killed by swiping it away from the recent apps, or when the phone is rebooted, I cannot get any receiver to get the intent and start the related service.\r\n\r\nI've tried any combination of permissions and Intent Filters on my BroadcastReceiver class but nothing happens.\r\n\r\nYour Android Client Sample (in PushSharp) behaves in the same way.\r\n\r\nCan you help?\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/Redth/GCM.Client/issues/comments/93953158","html_url":"https://github.com/Redth/GCM.Client/issues/2#issuecomment-93953158","issue_url":"https://api.github.com/repos/Redth/GCM.Client/issues/2","id":93953158,"user":{"login":"ManoLangra123","id":11654987,"avatar_url":"https://avatars.githubusercontent.com/u/11654987?v=3","gravatar_id":"","url":"https://api.github.com/users/ManoLangra123","html_url":"https://github.com/ManoLangra123","followers_url":"https://api.github.com/users/ManoLangra123/followers","following_url":"https://api.github.com/users/ManoLangra123/following{/other_user}","gists_url":"https://api.github.com/users/ManoLangra123/gists{/gist_id}","starred_url":"https://api.github.com/users/ManoLangra123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ManoLangra123/subscriptions","organizations_url":"https://api.github.com/users/ManoLangra123/orgs","repos_url":"https://api.github.com/users/ManoLangra123/repos","events_url":"https://api.github.com/users/ManoLangra123/events{/privacy}","received_events_url":"https://api.github.com/users/ManoLangra123/received_events","type":"User","site_admin":false},"created_at":"2015-04-17T09:38:41Z","updated_at":"2015-04-17T09:38:41Z","body":"Following can help to solve this issue. I resolved using same code.\r\n<uses-permission android:name=\"android.permission.RECEIVE_BOOT_COMPLETED\"/>\r\n<application>\r\n <intent-filter>\r\n<!--                <action android:name=\"android.intent.action.QUICKBOOT_POWERON\"/>-->\r\n                <action android:name=\"android.intent.action.BOOT_COMPLETED\"/>\r\n                <category android:name=\"android.intent.category.HOME\"/>\r\n </intent-filter>\r\nadd this class file : \r\npublic class BootCompletedIntentReceiver extends BroadcastReceiver {\r\n    @Override\r\n    public void onReceive(Context context, Intent intent) {\r\n\r\n            Intent notification_intent = new Intent(context, NotificationFragment.class);\r\n            context.startService(notification_intent);\r\n        }\r\n    }"}}