是否可以通过 APNS 将推送通知发送到通过 FCM 生成的设备令牌?

Is it possible to send push notification through APNS to device token generated via FCM?

在项目中,我正在使用 FCM 为 IOS 和 Android 生成设备令牌。并推送通知。在我的研究中,我发现可以使用 https://fcm.googleapis.com/fcm/send

发送推送通知

但是是否可以将推送通知发送到 IOS 设备,通过使用 APNS api.sandbox.push.apple.com 到 FCM 生成的令牌?

A​​pple 文档 Link

没有。 Api.sandbox.push.apple.com 只能与 Apple 生成的令牌一起使用。您需要使用 didRegisterForRemoteNotificationsWithDeviceToken 在客户端中获取 Apple 令牌并将其发送到您的服务器。 顺便说一句,Firebase SDK 正是这样做的,并获取此令牌以发送 iOS 通知。对于每个 FireBase 令牌,他们从设备中获取相关的 Apple 令牌,并在连接到 Apple 服务器时使用它。