I implemented Firebase cloud messaging in my Android app and also setup the Firebase console. Those are working perfectly so far for
- App in foreground
- App in background
But not when my app was killed. According to this answer for point 1.2:
Data Messages: Theses messages trigger the onMessageReceived() callback even if your app is in foreground/background/killed
What am I missing to receive data for killed apps?
Here the json I pass:
{
"to": "/topics/testTopic",
"data": {
"key1" : "val1",
"key2" : true
}
}
I applied the example in the link above in point 2.