How to remove push notification API

本小妞迷上赌 提交于 2019-12-01 10:41:56

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/32127500/how-to-remove-push-notification-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!