简体   繁体   English

如何删除推送通知API

[英]How to remove push notification API

Apple sends the following email when submitting iOS app: 苹果在提交iOS应用程序时发送以下电子邮件:

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. 缺少推送通知权利-您的应用似乎包含用于向Apple推送通知服务注册的API,但是应用签名的权利不包括“ aps-environment”权利。 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. 如果您的应用程序使用Apple Push Notification服务,请确保您的App ID在Provisioning Portal中启用了Push Notification,并在使用包含“ aps-environment”权利的Distribution Provisioning配置文件对您的应用程序进行签名后重新提交。 See "Provisioning and Development" in the Local and Push Notification Programming Guide for more information. 有关更多信息,请参见《本地和推送通知编程指南》中的“ Provisioning and Development”。 If your app does not use the Apple Push Notification service, no action is required. 如果您的应用程序不使用Apple Push Notification服务,则无需采取任何措施。 You may remove the API from future submissions to stop this warning. 您可以从以后的提交中删除该API,以停止此警告。 If you use a third-party framework, you may need to contact the developer for information on removing the API. 如果使用第三方框架,则可能需要与开发人员联系以获取有关删除API的信息。

@GordonDove: Looks very plausible from where I'm sitting. @GordonDove:从我坐的地方看起来很合理。 registerUserNotificationSettings is producing false positives. registerUserNotificationSettings产生误报。

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): 如果您绝对肯定不这样做,请启动Terminalcd到您的项目中,然后执行(不要忘记在grep命令后面加上space dot ):

grep -r "registerUserNotificationSettings" .

It appears as so Apple does not discriminate between local and remote notifications. 看起来是这样,Apple不会区分本地通知和远程通知。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM