Ionic Applow Capactor,firebase通知警告,ITMS-90078:缺少推送通知权利需要咨询

时间:2020-05-25 13:19:00

标签: angularjs firebase ionic-framework capacitor ionic-appflow

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

但是关于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服务SSL(沙盒和生产)”证书。

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

我还必须做其他事情吗?

1 个答案:

答案 0 :(得分:2)

检查先决条件:

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

尤其是数字3: Ensure Push Notification capabilities have been enabled在您的Xcode应用程序中

该链接说明了如何添加功能,您必须搜索“推送”,然后双击它或将其拖动到“签名和功能”窗格中。

capabilities screen