0
0
iOS Swiftmobile~5 mins

Push notifications (APNs + FCM) in iOS Swift - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is APNs in iOS development?
APNs stands for Apple Push Notification service. It is Apple's service that allows apps to receive remote notifications on iOS devices.
Click to reveal answer
beginner
What role does Firebase Cloud Messaging (FCM) play in push notifications?
FCM is a cross-platform messaging solution from Google that lets you send notifications and data messages to iOS, Android, and web apps.
Click to reveal answer
intermediate
How does an iOS app register for push notifications?
The app requests permission from the user and then registers with APNs to get a device token, which is used to send notifications to that device.
Click to reveal answer
intermediate
What is the purpose of the device token in push notifications?
The device token uniquely identifies an app on a device to APNs or FCM, so the server knows where to send the notification.
Click to reveal answer
advanced
Why do you need to configure APNs certificates or keys in Firebase for iOS push notifications?
Because Firebase uses APNs to deliver notifications to iOS devices, it needs the APNs authentication key or certificate to communicate securely with Apple servers.
Click to reveal answer
Which service is responsible for delivering push notifications to iOS devices?
AApple Push Notification service (APNs)
BFirebase Cloud Messaging (FCM)
CGoogle Cloud Messaging (GCM)
DAndroid Notification Service
What must an iOS app obtain from APNs to receive push notifications?
AAPI key
BUser password
CDevice token
DApp ID
Why do developers use Firebase Cloud Messaging with iOS apps?
ATo send notifications across multiple platforms including iOS
BTo replace APNs entirely
CTo create local notifications only
DTo manage app UI
What is required to enable FCM to send notifications to an iOS app?
AGoogle Play Services
BAPNs authentication key or certificate
CAndroid SDK
DApp Store approval
Which Swift method is commonly used to request user permission for notifications?
AapplicationDidBecomeActive
BUIApplication.shared.registerForRemoteNotifications
CdidReceiveRemoteNotification
DUNUserNotificationCenter.current().requestAuthorization
Explain the process of setting up push notifications for an iOS app using APNs and FCM.
Think about user permission, device token, server configuration, and message delivery.
You got /5 concepts.
    Describe the difference between APNs and FCM in the context of iOS push notifications.
    Consider native vs cross-platform roles and how they work together.
    You got /5 concepts.