Firebase Cloud Messaging (FCM) supports different message types. Which of the following best describes a notification message?
Think about which message type the system displays automatically when the app is not active.
Notification messages contain predefined keys for user-visible content. The system displays them automatically when the app is in the background or closed.
You want to send messages from your server to client apps using FCM. Which key must you use in the HTTP header for authorization?
Look for the key specifically labeled for Cloud Messaging in Firebase console.
The Server Key is used to authorize your server to send messages through FCM HTTP API.
You want to ensure your app receives important messages even if the device is offline for some time. Which FCM feature helps achieve this?
Consider how long messages stay in FCM storage before they expire.
The 'time_to_live' parameter defines how long FCM stores the message if the device is offline, ensuring delivery within that time.
Which practice best protects user privacy and security when handling FCM registration tokens?
Think about how to keep tokens safe and up to date.
Tokens should be sent securely to your server and rotated to prevent misuse and protect user privacy.
Consider an Android app receiving an FCM message with both notification and data payload. What happens when the app is in the background?
Recall how Android handles combined payloads when the app is not active.
When the app is in the background, the system displays the notification automatically. The data payload is delivered only when the user taps the notification and opens the app.