Firebase Cloud Messaging is Missing the First Message Occasionally
What is included in my FCM message:
- Data payload (only)
- High priority
What is working now so far:
- Data message is delived when app is in foreground.
- Data message is delived when app is in background.
- Data message is delived when app is killed (not long ago).
What is not working so far:
- When device is in Doze mode (not charging, not moving) for more than 2 hours, the first FCM message is not delived occasionally (approximately 10% of chance), however the second FCM message is delived 100%. PS:
IGNORE_BATTERY_OPTIMIZATIONpermission is granted.
Test device: Samsung Z Fold5