Recall & Review
beginner
What is Firebase Cloud Messaging (FCM)?
Firebase Cloud Messaging (FCM) is a free service by Google that lets you send notifications and messages to Android, iOS, and web apps. It helps apps stay connected with users by delivering push notifications.
Click to reveal answer
beginner
Which Android component handles incoming push notifications?
The FirebaseMessagingService class handles incoming push notifications. You create a subclass and override the onMessageReceived() method to define how your app reacts when a message arrives.Click to reveal answer
intermediate
What is the purpose of a notification channel in Android push notifications?
Notification channels group notifications by type and let users control settings like sound and vibration for each channel. They are required for Android 8.0 (API level 26) and above.Click to reveal answer
intermediate
How do you get the device token for FCM in Kotlin?
You get the device token by calling FirebaseMessaging.getInstance().token.addOnCompleteListener { ... } which asynchronously returns the unique token identifying the device for push messages.
Click to reveal answer
beginner
Why is it important to handle notification clicks in your app?
Handling notification clicks lets you control what happens when a user taps a notification, such as opening a specific screen. This improves user experience by linking notifications to relevant app content.
Click to reveal answer
Which class should you extend to handle incoming FCM messages in Android?
✗ Incorrect
FirebaseMessagingService is the class designed to receive and handle incoming FCM messages.
What Android version introduced notification channels?
✗ Incorrect
Notification channels were introduced in Android 8.0 Oreo to organize notifications and allow user control.
How do you obtain the FCM device token in Kotlin?
✗ Incorrect
The recommended way is to call FirebaseMessaging.getInstance().token asynchronously to get the device token.
What is the main purpose of a notification channel?
✗ Incorrect
Notification channels group notifications and allow users to customize settings like sound and vibration.
Which Firebase service is used to send push notifications?
✗ Incorrect
Firebase Cloud Messaging is the service used to send push notifications to apps.
Explain how to set up Firebase Cloud Messaging in an Android app using Kotlin.
Think about the steps from adding Firebase to handling messages and notifications.
You got /6 concepts.
Describe why notification channels are important and how they affect user experience.
Consider how users interact with notifications and their settings.
You got /5 concepts.