如何删除推送通知 API [英] How to remove push notification API

查看:27
本文介绍了如何删除推送通知 API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Apple 在提交 iOS 应用程序时会发送以下电子邮件:

Apple sends the following email when submitting iOS app:

缺少推送通知权利 - 您的应用似乎包括用于注册 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.

推荐答案

@GordonDove:从我坐的地方看起来很合理.registerUserNotificationSettings 产生误报.

无论如何,您的应用仍在调用:

One way or another, your app is still invoking:

[[UIApplication sharedApplication] registerUserNotificationSettings:mySettings];

如果你绝对肯定你没有这样做,启动终端cd到你的项目,然后执行(不要忘记空格点code> 尾随 grep 命令):

If you are absolutely positive you are not doing this, launch Terminal, cd to your project, and execute (do not forget the space dot trailing the grep command):

grep -r "registerUserNotificationSettings" .

Apple 似乎不区分本地和远程通知.

这篇关于如何删除推送通知 API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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