0

我最近开始使用离子电容器。我已使用以下教程 https://capacitor.ionicframework.com/docs/guides/push-notifications-firebase/成功地将我的通知迁移到 Android

但是当涉及到 IOS 时,我收到以下警告:

ITMS-90078: Missing Push Notification Entitlement - Your app appears to register with the Apple Push Notification service, but the app signature's entitlements do not include the "aps-environment" entitlement. If your app uses the Apple Push Notification service, make sure your App ID is enabled for Push Notification in the Provisioning Portal, and resubmit after signing your app with a Distribution provisioning profile that includes the "aps-environment" entitlement. Xcode does not automatically copy the aps-environment entitlement from provisioning profiles at build time. This behavior is intentional. To use this entitlement, either enable Push Notifications in the project editor's Capabilities pane, or manually add the entitlement to your entitlements file. For more information, see https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/HandlingRemoteNotifications.html#//apple_ref/doc/uid/TP40008194-CH6-SW1. 

我为我的 Firebase 设置使用了“Apple Push Notification service SSL (Sandbox & Production)”认证。

在 Ionic Appflow 中,我还添加了一个新的 App Store Provisioning Profile。

我必须做其他事情吗?

4

1 回答 1

2

检查先决条件:

https://capacitor.ionicframework.com/docs/guides/push-notifications-firebase/#prerequisites

特别是数字 3: 确保在 Xcode 中的应用程序中启用了推送通知功能

该链接说明了如何添加功能,您必须搜索 Push 并双击它或将其拖到 Signing & Capabilities 窗格。

能力屏幕

于 2020-05-26T11:35:23.130 回答