Question: how fcm works in ios?
Answer: The iOS requests a device token from the Apple Push Notification Service (APNs). The iOS app receives the token, which is used to send Push Notifications to the application identified by the App ID. The FCM sends the notification to APNs and then APNS identifies the FCM Server API before sending them to the iOS device.