//fcm token may not be available on first load, catch it here
//fcm token may not be available on first load, catch it here
});
});
}
}
componentWillUnmount(){
componentWillUnmount(){
//prevent leak
//prevent leak
this.fcmNotifLsnr.remove();
this.fcmNotifLsnr.remove();
this.fcmTokenLsnr.remove();
this.fcmTokenLsnr.remove();
}
}
}
}
```
```
## Q & A
## Q & A
### Why my android build is co
### My android build is failing
### Why I don't get data notification when app is killed?
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
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?
### 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
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