Recall & Review
beginner
What does FCM stand for in mobile development?
FCM stands for Firebase Cloud Messaging. It is a service that helps send push notifications to mobile apps.
Click to reveal answer
beginner
Why do we need to ask user permission for push notifications on iOS?
iOS requires apps to ask users for permission before sending push notifications to respect user privacy and control.
Click to reveal answer
intermediate
What is the role of a device token in FCM push notifications?
A device token is a unique ID that identifies a device to FCM so it knows where to send the notification.
Click to reveal answer
intermediate
Name one React Native library commonly used to handle FCM push notifications.
One popular library is '@react-native-firebase/messaging' which helps integrate FCM in React Native apps.
Click to reveal answer
beginner
What is a common step to test push notifications during development?
You can use Firebase Console to send test notifications to your app using the device token.
Click to reveal answer
What is the first step to receive push notifications in a React Native app using FCM?
✗ Incorrect
You must first ask the user for permission to receive notifications before you can get a device token.
Which platform requires explicit user permission for push notifications?
✗ Incorrect
iOS requires explicit user permission, while Android grants it by default.
What does the device token represent in FCM?
✗ Incorrect
The device token uniquely identifies the device to receive push notifications.
Which React Native package is commonly used to handle FCM messaging?
✗ Incorrect
The '@react-native-firebase/messaging' package helps integrate FCM push notifications.
Where can you send test push notifications to your app during development?
✗ Incorrect
Firebase Console allows you to send test notifications to your app using device tokens.
Explain the process of setting up push notifications with FCM in a React Native app.
Think about the steps from Firebase setup to receiving a notification on the device.
You got /5 concepts.
Describe why user permission is important for push notifications and how it differs between iOS and Android.
Consider platform rules and user control over notifications.
You got /4 concepts.