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

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

问题描述

苹果发送以下电子邮件时提交iOS应用:

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


解决方案

  

@GordonDove:看起来与我坐在那里非常合理的。 registerUserNotificationSettings 正在产生误报。


这种或那种方式,您的应用程序仍然调用:

  [UIApplication的sharedApplication] registerUserNotificationSettings:mySettings];

如果你是绝对肯定你不这样做,推出的终端 CD 到您的项目,并执行(不要忘了空间点尾随的grep 命令):

 的grep -rregisterUserNotificationSettings。

这将显示为因此苹果不会本地和远程通知区别对待。

Apple sends the following email when submitting iOS app:

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: Looks very plausible from where I'm sitting. registerUserNotificationSettings is producing false positives.

One way or another, your app is still invoking:

[[UIApplication sharedApplication] registerUserNotificationSettings:mySettings];

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" .

It appears as so Apple does not discriminate between local and remote notifications.

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

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