简体   繁体   English

我无法发送推送通知来测试Flight Expo Expo独立应用

[英]I can't send push notification to test flight expo standalone app

My Application needs a feature that receives remote notification from our server. 我的应用程序需要一项功能,该功能可以从我们的服务器接收远程通知。 It's work fine on expo and simulation, but on standalone iOS, it shows me the error like this 在博览会和模拟上都可以正常工作,但是在独立的iOS上,它会向我显示这样的错误

在此处输入图片说明

I install this app via a test flight where the 'NOTIFICATION' permission is return status as 'undetermined', so I tried to getDeviceToken and it returned the error like the image above. 我通过试飞安装了此应用,其中“通知”权限的返回状态为“未确定”,因此我尝试获取DeviceDeviceToken并返回如上图所示的错误。

when I submit app to test flight apple send the warning mail to me 当我提交测试飞行苹果的应用程序时,向我发送警告邮件

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. 缺少推送通知权利-您的应用程序似乎已在Apple推送通知服务中注册,但应用程序签名的权利不包括“ aps-environment”权利。 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. 如果您的应用程序使用Apple Push Notification服务,请确保在Provisioning Portal中为您的Push ID启用了您的App ID,并在使用包含“ aps-environment”权利的Distribution Provisioning配置文件对您的应用程序进行签名后重新提交。 Xcode 8 does not automatically copy the aps-environment entitlement from provisioning profiles at build time. Xcode 8不会在构建时自动从配置文件中复制aps环境权利。 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 . 有关更多信息,请参阅https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/HandlingRemoteNotifications.html#//apple_ref/doc/uid/TP40008194-CH6-SW1

it seems to be the push notification on capabilities section is not enable ( normally in native project I set it up in Xcode), how can I enable it on expo? 似乎未启用功能部分的推送通知(通常在本机项目中,我是在Xcode中设置的),如何在expo上启用它?

我已经通过重建独立应用程序解决了此问题,并让博览会处理我的证书进行推送和配置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我无法向我的应用程序发送 Firebase Cloud Messaging 推送通知我按照步骤操作但无处可去 - I can't send a Firebase Cloud Messaging push notification to my app i followed the steps but got nowhere 我无法通过Expo在iOS中测试我的应用 - I can't test my app in iOS with Expo 通过试飞没有收到苹果推送通知。虽然我正在使用生产APNS证书 - apple push notification is not received through test flight.Although i am using production APNS certificate 无法关闭应用中显示的推送通知 - Can't dismiss push notification shown in app 应用发布后,试飞航班发送电子邮件通知| iOS版 - Test flight sending email notification after app release | iOS 无法邀请内部测试人员进行试飞 - Can't invite internal tester for test flight 如果由我自己的服务器组成,为什么我无法发送推送通知(Firebase Cloud Messaging) - Why I Can't send the push notification (Firebase Cloud Messaging) if composed from my own Server Apple Push Notification测试应用程序 - Apple Push Notification test app 解析中的自定义Webhook是否可以将推送通知发送到ios应用? - Can custom webhook in Parse send push notification to ios app? 推送Sharp以将推送通知发送到IOS App - Push Sharp to send push Notification to IOS App
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM