Notifications received while the Android device is turned off are received when the device is turned on. #6773
-
First of all thank you for the great library. I appreciate it. Please note that I am using a translation software and the English may not be correct. I am creating a VOIP app using "@react-native-firebase/messaging" for incoming call notifications. I am displaying a notification when there is an incoming call. The problem occurs when an incoming call is received while the Android device is turned off. My question is: Is it a specification that the onReceive method is called when the Android device is turned on if the notification is received while the Android device is turned off? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Firebase Cloud Messages are queued for delivery based on the TTL of the message. So if the TTL is high and the device is off, then yes when the device is on again the FCM will de-queue and spool out to the device, triggering handlers https://firebase.google.com/docs/cloud-messaging/concept-options#lifetime
and later
Here is specific discussion on how to limit the lifespan of a message, referencing the case of an incoming call even: https://firebase.google.com/docs/cloud-messaging/concept-options#ttl |
Beta Was this translation helpful? Give feedback.
Firebase Cloud Messages are queued for delivery based on the TTL of the message.
So if the TTL is high and the device is off, then yes when the device is on again the FCM will de-queue and spool out to the device, triggering handlers
https://firebase.google.com/docs/cloud-messaging/concept-options#lifetime
and later