简体   繁体   English

Apple推送通知错误(aps-environment)

[英]Apple Push Notification Error (aps-environment)

I have registered the app on iTunes connect. 我在iTunes connect上注册了该应用程序。 When I run the app on the device I get the following APNS error. 当我在设备上运行应用程序时,我收到以下APNS错误。

Error Domain=NSCocoaErrorDomain Code=3000 "no valid 'aps-environment' entitlement string found for application" UserInfo=0x19e890 {NSLocalizedDescription=no valid 'aps-environment' entitlement string found for application}

I have used the same AppID and bundle identifier in the xCode project as well as the iTunes connect. 我在xCode项目中使用了相同的AppID和包标识符以及iTunes连接。

Also, I forgot to mention that the App is registered under a Enterprise developer profile and I am running it under my personal developer profile. 此外,我忘了提到该应用程序是在Enterprise开发人员配置文件下注册的,我在我的个人开发者配置文件下运行它。

您尚未在配置门户中启用推送通知,或者您没有使用在启用推送通知时创建的正确证书对您的应用进行签名。

Having the same problem, I ended up removing my Provisioning Profiles, on the provisioning portal clicked Edit and then Generate to have them freshly generated, then downloaded the needed Provisioning profiles and double-checked Code Signing Identity (in Build Settings). 遇到同样的问题,我最终删除了我的供应配置文件,在供应门户上单击了编辑,然后生成以便新生成它们,然后下载所需的供应配置文件并仔细检查代码签名标识(在构建设置中)。

Code Signing Identity looks like this: http://i.stack.imgur.com/2l2hd.png 代码签名标识如下所示: http//i.stack.imgur.com/2l2hd.png

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

相关问题 推送通知对话框即使在没有aps环境的情况下也显示 - Push Notification Dialog displaying Even without aps-environment CloudKit,远程通知和aps环境 - CloudKit, remote-notification, and aps-environment 苹果推送通知 - 没有有效的'aps-environment'尝试过我在网上看过的所有解决方案? - apple push notifications - no valid 'aps-environment' have tried all solutions I've seen on web? CloudKit +没有有效的APS环境授权错误 - CloudKit + no valid aps-environment entitlement error 缺少推送通知权利应用程序签名的权利不包括“aps-environment” - Missing Push Notification Entitlement app signature's entitlements do not include the “aps-environment” 缺少推送通知权利,即使设置了 aps-environment 权利。 iOS 和试飞 - Missing Push Notification Entitlement, even with aps-environment entitlement set. iOS and Testflight 缺少推送通知权利。应用程序签名的权利不包括“aps-environment” - Missing Push Notification Entitlement. the app signature's entitlements do not include the “aps-environment” 注册推送通知时,“没有有效的'aps-environment'权利字符串” - “no valid 'aps-environment' entitlement string” when registering for Push Notifications phonegap构建通用推送插件-没有有效的aps环境 - phonegap build generic push plugin - no valid aps-environment aps-环境永远是发展 - aps-environment is always development
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM