I had some issues with one of my apps receiving FCM messages correctly (when the phone was off and when it was swiped away/killed by the user). The other day I had a problem with my Google calendar widget not updating.
I then compared WhatsApp with my own app settings.
Solution: Check your Android settings (settings -> apps -> your app -> energy (or similar) -> run while screen is off (or similar) -> say yes!
Now even if I kill my app, the FCM messages arrive and the service receives it! Before I had a lot of issues.
I then compared WhatsApp with my own app settings.
Solution: Check your Android settings (settings -> apps -> your app -> energy (or similar) -> run while screen is off (or similar) -> say yes!
Now even if I kill my app, the FCM messages arrive and the service receives it! Before I had a lot of issues.