On Android 11 only, when the app is in the background and the screen is off, high priority push messages are not received for 10 - 30 minutes.
This is exhibited on a Pixel 4XL running Android 11. General battery optimizations are off. App specific battery optimizations have also been turned off. The device is connected to a WiFi network. The same behaviour is shown on a 4G connection.
From what I understand of the documentation, high priority fcm messages should be delivered immediately and are not restricted to doze cycles.
Even if it was a doze cycle, this behaviour is still evident within 3 minutes of turning the screen off, which is not enough time for deep doze to activate.
The fcm messages work fine while the device is plugged in.
How would I allow my app to receive push messages in a timely manner?
The notification node of the payload is not provided. Only data. The priority is set to high.