When a Firebase Cloud Messaging (FCM) notification message is sent to an Android app that is in the background, what happens?
Think about how notification messages are handled by the system when the app is not active.
Notification messages are handled by the system when the app is in the background, so the system automatically displays them in the notification tray without needing app code to run.
What happens when a Firebase Cloud Messaging data message is sent to an iOS app that is in the background?
Consider how data messages differ from notification messages on iOS.
Data messages can be delivered silently to iOS apps in the background if the app has enabled background modes and handles the message properly.
You want to send a message that always shows a notification to the user, even if the app is closed, and also carries custom data for app processing. Which Firebase Cloud Messaging message type should you use?
Think about which message type guarantees notification display and also supports custom data.
Notification messages with data payload ensure the system displays a notification and the app receives the data for processing.
Which security risk is most relevant when using Firebase Cloud Messaging data messages to send sensitive information?
Consider how data travels over networks and device security.
FCM encrypts messages in transit but not end-to-end; if a device or network is compromised, data messages could be exposed.
To minimize battery consumption on mobile devices, which Firebase Cloud Messaging message type and strategy is best when sending frequent updates that do not require immediate user attention?
Think about how message priority affects device wakeups and battery life.
Using data messages with normal priority and batching updates reduces device wakeups and saves battery.