Android Example Important: Phone energy settings!

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.
 

Alpandino

Member
Licensed User
Really interesting suggestion! I have similar issue with FCM but only with 2 type of device.
There is any way to detect this setting by code and ask the user to change this setting for my specific app?

Thanks
 
Top