//fcm token may not be available on first load, catch it here
});
}
componentWillUnmount(){
//prevent leak
this.fcmNotifLsnr.remove();
this.fcmTokenLsnr.remove();
//prevent leak
this.fcmNotifLsnr.remove();
this.fcmTokenLsnr.remove();
}
}
```
## Q & A
### Why my android build is co
### Why I don't get data notification when app is killed?
### My android build is failing
Try update your SDK and google play service
### I can't get data notification when app is killed?
If you send notification with payload only, you can only get the data message when app is in foreground or background. Killed app can't show notification
### Why I don't get data notification when I'm sending hybrid notification when app is in background?
I want to figure it out too. Looks like that is how GCM/FCM works. I'm sending 2 notification separately for now. Let me know if you find a better solution