payload: {"action":"created","issue":{"url":"https://api.github.com/repos/firebase/quickstart-android/issues/822","repository_url":"https://api.github.com/repos/firebase/quickstart-android","labels_url":"https://api.github.com/repos/firebase/quickstart-android/issues/822/labels{/name}","comments_url":"https://api.github.com/repos/firebase/quickstart-android/issues/822/comments","events_url":"https://api.github.com/repos/firebase/quickstart-android/issues/822/events","html_url":"https://github.com/firebase/quickstart-android/issues/822","id":416381341,"node_id":"MDU6SXNzdWU0MTYzODEzNDE=","number":822,"title":"onMessageRecieved not working when app is killed. Any solution?","user":{"login":"KORuL","id":19871487,"node_id":"MDQ6VXNlcjE5ODcxNDg3","avatar_url":"https://avatars3.githubusercontent.com/u/19871487?v=4","gravatar_id":"","url":"https://api.github.com/users/KORuL","html_url":"https://github.com/KORuL","followers_url":"https://api.github.com/users/KORuL/followers","following_url":"https://api.github.com/users/KORuL/following{/other_user}","gists_url":"https://api.github.com/users/KORuL/gists{/gist_id}","starred_url":"https://api.github.com/users/KORuL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KORuL/subscriptions","organizations_url":"https://api.github.com/users/KORuL/orgs","repos_url":"https://api.github.com/users/KORuL/repos","events_url":"https://api.github.com/users/KORuL/events{/privacy}","received_events_url":"https://api.github.com/users/KORuL/received_events","type":"User","site_admin":false},"labels":[{"id":817640958,"node_id":"MDU6TGFiZWw4MTc2NDA5NTg=","url":"https://api.github.com/repos/firebase/quickstart-android/labels/api:%20messaging","name":"api: messaging","color":"e85733","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2019-03-02T10:01:48Z","updated_at":"2019-06-10T13:34:01Z","closed_at":null,"author_association":"NONE","body":"### Step 1: Describe your environment\r\n\r\n  * Android device:  Meizu M1 Note\r\n  * Android OS version: 5.1\r\n  * Google Play Services version: `com.google.gms:google-services:4.2.0`\r\n  * Firebase/Play Services SDK version: \r\n\r\n```\r\n    implementation 'com.google.firebase:firebase-core:16.0.7'\r\n//    implementation 'com.google.firebase:firebase-iid:17.1.0'\r\n    implementation 'com.google.firebase:firebase-messaging:17.4.0'\r\n    implementation 'com.firebase:firebase-jobdispatcher:0.8.5'\r\n    implementation 'com.google.firebase:firebase-functions:16.1.3'\r\n    implementation 'com.google.firebase:firebase-auth:16.1.0'\r\n    implementation 'com.google.firebase:firebase-database:16.0.6'\r\n    implementation 'com.google.firebase:firebase-crash:16.2.1'\r\n    implementation 'com.google.firebase:firebase-storage:16.0.5'\r\n    implementation 'com.google.android.gms:play-services-auth:16.0.1'\r\n    implementation 'com.google.gms:google-services:4.2.0'\r\n  \r\n```\r\n\r\n### Step 2: Describe the problem:\r\n\r\nAlmost all phones are fine. But in some phone (Meizu M1 note):\r\n\r\nonMessageRecieved not working when app is killed in some devices. It works perfect in foreground and in background. But when app is killed I don t receive notification in system tray, or call onMessageRecieved .\r\n\r\nI send only DATA (to, data) notification. What I do wrong?\r\n\r\nI read #4 , #89 , #86 , #368 , #365 , #337 , #205 , #96  , #20 , #4, #151 , #816 did not find the answer.\r\n\r\nI get a strange error in logcat  `W/GCM: broadcast intent callback: result=CANCELLED forIntent { act=com.google.android.c2dm.intent.RECEIVE pkg=net.korul.hbbft (has extras) }`\r\n\r\nI made this receiver - but it did not help\r\n\r\n```\r\n<receiver\r\n            android:name=\".MyBroadcastReceiver\"\r\n            android:permission=\"com.google.android.c2dm.permission.SEND\" >\r\n            <intent-filter>\r\n                <action android:name=\"com.google.android.c2dm.intent.RECEIVE\" />\r\n                <category android:name=\"net.korul.hbbft\" />\r\n            </intent-filter>\r\n        </receiver>\r\n```\r\n\r\n\r\nAndroidManifest contains:\r\n\r\n\r\n```\r\n        <service android:name=\".services.MyFirebaseMessagingService\"\r\n                 android:permission=\"true\"\r\n                 ndroid:stopWithTask=\"false\">\r\n            <intent-filter>\r\n                <action android:name=\"com.google.firebase. MESSAGING_EVENT\"/>\r\n            </intent-filter>\r\n        </service>\r\n```\r\n\r\nMyFirebaseMessagingService - is standart from snippset\r\n\r\n\r\n#### Steps to reproduce:\r\n\r\n  1. Minimize and swipe out your application\r\n  2. Send FCM notification\r\n  3. You can see the below log but notification doesn't trigge\r\n  \r\n#### Observed Results:\r\n\r\n W/GCM: broadcast intent callback: result=CANCELLED forIntent { act=com.google.android.c2dm.intent.RECEIVE pkg=net.korul.hbbft (has extras) }\r\n  \r\n#### Expected Results:\r\n\r\n  Should get the notification\r\n\r\n#### Relevant Code:\r\n\r\n\r\nI read all the branches dedicated to this issue, do not refer to them! The problem is, she is over 2 years old! Need a solution!\r\n\r\nI also tried to send a push message with the firebase console, and it does not come - the exact same error"},"comment":{"url":"https://api.github.com/repos/firebase/quickstart-android/issues/comments/500418411","html_url":"https://github.com/firebase/quickstart-android/issues/822#issuecomment-500418411","issue_url":"https://api.github.com/repos/firebase/quickstart-android/issues/822","id":500418411,"node_id":"MDEyOklzc3VlQ29tbWVudDUwMDQxODQxMQ==","user":{"login":"luanrafael","id":5096830,"node_id":"MDQ6VXNlcjUwOTY4MzA=","avatar_url":"https://avatars0.githubusercontent.com/u/5096830?v=4","gravatar_id":"","url":"https://api.github.com/users/luanrafael","html_url":"https://github.com/luanrafael","followers_url":"https://api.github.com/users/luanrafael/followers","following_url":"https://api.github.com/users/luanrafael/following{/other_user}","gists_url":"https://api.github.com/users/luanrafael/gists{/gist_id}","starred_url":"https://api.github.com/users/luanrafael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luanrafael/subscriptions","organizations_url":"https://api.github.com/users/luanrafael/orgs","repos_url":"https://api.github.com/users/luanrafael/repos","events_url":"https://api.github.com/users/luanrafael/events{/privacy}","received_events_url":"https://api.github.com/users/luanrafael/received_events","type":"User","site_admin":false},"created_at":"2019-06-10T13:34:01Z","updated_at":"2019-06-10T13:34:01Z","author_association":"NONE","body":"I get the same problem with: \r\n\r\nXiomi Mi 9\r\n"}}
other: {"actor":{"display_login":"luanrafael"}}