React Native

Push Notifications

FCM, APNs, react-native-firebase, local notifications, background handling

18 câu hỏi phỏng vấn·
Mid-Level
1

What is the fundamental difference between push notifications and local notifications?

Câu trả lời

Push notifications are sent from a remote server via services like FCM or APNs, while local notifications are generated directly by the app on the device without requiring a network connection. Local notifications are useful for reminders, alarms, or locally scheduled events.

2

What is Firebase Cloud Messaging (FCM)?

Câu trả lời

FCM is Google's service for sending push notifications for free on Android and iOS. It replaced the old Google Cloud Messaging (GCM) and allows sending messages to individual devices, groups, or topics. FCM automatically handles connection and message delivery.

3

What is APNs (Apple Push Notification service)?

Câu trả lời

APNs is Apple's official service for sending push notifications to iOS, iPadOS, watchOS, tvOS, and macOS devices. Unlike FCM which can target iOS directly, notifications on Apple devices must go through APNs. FCM uses APNs behind the scenes to deliver notifications on iOS.

4

Which library is recommended for implementing push notifications with Firebase in React Native?

5

What is an FCM token (device token) and what is it used for?

+15 câu hỏi phỏng vấn

Nắm vững React Native cho lần phỏng vấn tiếp theo

Truy cập tất cả câu hỏi, flashcards, bài kiểm tra kỹ thuật, bài tập code review và mô phỏng phỏng vấn.

Bắt đầu miễn phí