0
0
Firebasecloud~20 mins

FCM setup in Firebase - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
FCM Setup Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding FCM Message Types

Firebase Cloud Messaging (FCM) supports different message types. Which of the following best describes a notification message?

AA message that requires the app to be open to receive it and cannot be delivered in the background.
BA message that contains only data payload and requires the app to handle it explicitly in all states.
CA message that is sent only to iOS devices and ignored by Android devices.
DA message that contains only user-visible content and is handled by the system when the app is in the background.
Attempts:
2 left
💡 Hint

Think about which message type the system displays automatically when the app is not active.

Configuration
intermediate
2:00remaining
FCM Server Key Usage

You want to send messages from your server to client apps using FCM. Which key must you use in the HTTP header for authorization?

AThe Server Key from the Cloud Messaging tab in Firebase console.
BThe Firebase Web API Key found in the project settings.
CThe OAuth 2.0 client ID from Google Cloud Console.
DThe Firebase Realtime Database secret key.
Attempts:
2 left
💡 Hint

Look for the key specifically labeled for Cloud Messaging in Firebase console.

Architecture
advanced
2:30remaining
Designing Reliable FCM Message Delivery

You want to ensure your app receives important messages even if the device is offline for some time. Which FCM feature helps achieve this?

AUsing the 'time_to_live' parameter to specify how long FCM should keep the message if the device is offline.
BSetting the message priority to 'normal' to save battery.
CSending messages only when the app is in the foreground.
DUsing only notification messages without data payload.
Attempts:
2 left
💡 Hint

Consider how long messages stay in FCM storage before they expire.

security
advanced
2:30remaining
Securing FCM Tokens

Which practice best protects user privacy and security when handling FCM registration tokens?

AStoring tokens in plain text on the client device for easy access.
BSharing tokens publicly to allow multiple servers to send messages.
CSending tokens securely to your app server and rotating them periodically.
DEmbedding tokens directly in the app source code.
Attempts:
2 left
💡 Hint

Think about how to keep tokens safe and up to date.

service_behavior
expert
3:00remaining
FCM Message Behavior on Different App States

Consider an Android app receiving an FCM message with both notification and data payload. What happens when the app is in the background?

AThe app receives both notification and data payload immediately in the background without user interaction.
BThe notification is displayed automatically, and the data payload is delivered to the app only when the user taps the notification.
CThe notification is ignored, and only the data payload is delivered silently in the background.
DNeither notification nor data payload is delivered until the app is opened.
Attempts:
2 left
💡 Hint

Recall how Android handles combined payloads when the app is not active.