1

I'm sending notifications via amazon sns and google Firebase fcm. Everything is working fine if the app is in the foreground or background. But if the app is killed then notifications stop.

I get the following in the debug console

W/GCM/DMM: broadcast intent callback: result=CANCELLED forIntent { act=com.google.android.c2dm.intent.RECEIVE pkg=... (has extras) }

I've look around for answers but found nothing?

nynohu
  • 1,628
  • 12
  • 12
mate0
  • 191
  • 4
  • 7
  • check the answer of Teerakiat Chitawattanarat in this [SO question](http://stackoverflow.com/questions/37711082). He discussed how to make firebase library to call `onMessageReceived()` in foreground, background or if the app has been killed. – KENdi Jan 24 '17 at 05:52
  • 1
    this worked for me http://stackoverflow.com/questions/37711082/how-to-handle-notification-when-app-in-background-in-firebase – mate0 Jan 30 '17 at 16:54

0 Answers0