缺少推送通知授权警告 [英] Missing Push Notification Entitlement warning

查看:853
本文介绍了缺少推送通知授权警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们已经创建了一个应用程序ID,分发证书和配置文件。推送通知最初并未启用。

We have created an App ID, distribution certificate and provisioning profile. Push Notifications were not initially enabled.

我们现在需要实现应用程序推送通知。

We now need to implement Push Notifications in the app.

我们已经启用的表观d推送通知,检查供应配置文件,置备配置文件是无效的,它更新,并下载最新的供应配置文件使用它的下一次。

We have enable Push Notifications in the App D, check the provisioning profile, the provisioning profile was invalid, updated it, and downloaded the latest provisioning profile to use it for next time.

我们再整合通过APNS推送通知API的在我们的code。

We then integrate the APIs for Push Notifications via APNS in our code.

在iTunesConnect上传应用程序后,我们从苹果公司获得以下电子邮件:

After uploading the app in iTunesConnect, we get the following email from Apple:

尊敬的开发商,

我们已经发现了一个或多个问题与您最近的交付Swanvi。你的交货是成功的,但您可能希望纠正你的下一个传递了以下问题:

We have discovered one or more issues with your recent delivery for "Swanvi". Your delivery was successful, but you may wish to correct the following issues in your next delivery:

缺少推送通知的权利 - 您的应用似乎包括用于与苹果推送通知服务注册API,但应用程序签名的权利不包括在APS-环境的权利。如果应用程序使用苹果的推送通知服务,请确保您的应用程序ID是在配置门户推送通知启用,并与包括APS-环境的权利一个发行配置文件签署您的应用程序后,重新提交。请参阅部署与发展在本地和推送通知编程指南以获取更多信息。如果您的应用程序不使用苹果的推送通知服务,则不需要任何操作。您可以从未来的报告中删除API来阻止这种警告。如果使用第三方框架,你可能需要联系的信息,开发商上删除API。

Missing Push Notification Entitlement - Your app appears to include API used 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. See "Provisioning and Development" in the Local and Push Notification Programming Guide for more information. If your app does not use the Apple Push Notification service, no action is required. You may remove the API from future submissions to stop this warning. If you use a third-party framework, you may need to contact the developer for information on removing the API.

您已经纠正了这些问题后,您可以使用X code或应用程序加载到一个新的二进制上传到iTunes连接。

After you’ve corrected the issues, you can use Xcode or Application Loader to upload a new binary to iTunes Connect.

我们已经重新检查了应用程序ID。推送通知是为开发和生产功能。

We have re-checked the App ID. Push Notifications are enabled for development and production.

在发放模板时,推送通知选项所示。

In the Provisioning Profile, the Push Notifications option is shown.

为什么我们通过电子邮件收到这样的警告?

Why are we getting this warning via email?

推荐答案

解决了!

您需要看到两件事情的:X上code使用您的帐户的配置轮廓和那些上developer.apple

You need to see 2 things: The provisioning profiles used by your account on Xcode and the ones on developer.apple

它的所有关于配置的配置文件。

Its all about the provisioning profiles.

第1步
转到<一个href=\"https://developer.apple.com/account/ios/profile/profileList.action\">https://developer.apple.com/account/ios/profile/profileList.action并看到活动的iOS发行配置文件,你需要为你的应用程序。然后点击它,并确保已启用服务推送通知启用。如果它不然后点击编辑并按照由苹果提供的步骤启用它。如果启用那就完美了。

STEP 1: Go to https://developer.apple.com/account/ios/profile/profileList.action and see the Active iOS Distribution Provisioning Profiles you need for your app. Then click on it and make sure Enabled Services has Push Notification enabled. If it doesn't then click on edit and enable it by following the steps provided by Apple. If it is enabled then perfect.

第2步:
删除您看到相关的应用程序(只需无效问卷,您的应用程序)的任何无效配置配置文件。我会告诉你为什么在下面的步骤。

STEP 2: Delete any Invalid Provisioning Profiles you see related to app (just the invalid ones for YOUR app). I'll tell you why in the following steps.

第三步:
转到X $ C $Ç - > preference - >查看详细信息(您的帐户) - >点击刷新就像3-4次是在一个更安全的一面。这将在本地删除无效的provisioning profile。点击完成。

STEP 3: Go to Xcode -> Preference -> View Details (for your Account) -> Click refresh like 3-4 times to be on a safer side. This will remove the invalid provisioning profile locally. Click DONE.

第四步:
转到您的应用目标 - >构建设置 - >在code签署,扩大你的供应配置文件显示调试发布标签。默认情况下它会自动上(这就是为什么你的应用程序很可能会自动使用我们只是在步骤2中删除无效的配置文件)。对于发布,是在一个更安全的一面,选择启用推送通知的活动发放模板上的步骤1所看到

STEP 4: Go to your app Targets -> Build Settings -> In Code Signing, expand your Provisioning Profile to show Debug and Release tabs. By default it will be on Automatic (which is why your app was probably automatically using the invalid profile that we just deleted in step 2). For Release, to be on a safer side, select the Active Provisioning Profile with enabled Push Notifications as seen on step 1.

这就是它。

您不应该得到任何电子邮件了。

You shouldn't get any emails now.

这篇关于缺少推送通知授权警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆