iOS 缺少推送通知权利警告 [英] iOS Missing Push notification Entitlement warning

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

问题描述

在我们的应用中,我们不使用推送通知,我们没有在标识符中启用推送通知.我们使用禁用推送通知创建分发配置文件并在应用商店提交.但是我们在邮件中收到了文本(请在下面查看).

In our app we don't use push notification, we did not enable the push notification in identifier. we create the distribution profile with disable push notification and submit on app store. but we got text(check below) in mail.

-> 收到这种邮件的原因是什么?-> 分布配置文件有问题吗?

-> What is the reason for getting this kind of mail? -> Is there any issue in distribution profile?

给我解决方案.

缺少推送通知权利 - 您的应用似乎包括用于注册 Apple 推送通知服务的 API,但应用签名的权利不包括aps-environment"权利.如果您的应用程序使用 Apple 推送通知服务,请确保您的 App ID 已在配置门户中启用推送通知,并在使用包含aps-environment"权利的分发配置文件对您的应用程序进行签名后重新提交.有关详细信息,请参阅本地和推送通知编程指南中的供应和开发".如果您的应用程序不使用 Apple 推送通知服务,则无需执行任何操作.您可以从以后的提交中删除 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.

纠正问题后,您可以使用 Xcode 或 Application Loader 将新的二进制文件上传到 iTunes Connect.

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

推荐答案

很少有像 airpush 或urbanairship 等第三方框架注册你的应用程序进行推送通知,甚至不需要在 appdelegate 上声明它,或者甚至不使用任何服务器来发送通知.因此,请确保您使用的任何框架都不得使用任何推送通知流程.

There are few third parties framework like airpush or urbanairship etc that register your app for pushnotification with out even declaring it on appdelegate or without even using any server to send notification. So make sure whatever framework you are using it must not be using any of the pushnotification process.

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

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