Apple 推送通知 - 应用商店提交 [英] Apple Push Notifications - App store submission

查看:37
本文介绍了Apple 推送通知 - 应用商店提交的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用具有推送通知代码的第三方库.但是在我们的代码中,我们没有任何与推送通知相关的内容.所以我的个人资料没有启用 APNS.当我尝试将此推送到 iTunes Connect 进行 BETA 测试时,我收到了来自 Apple 的电子邮件.我现在的问题是即使我不使用推送通知,我也可以在启用 APNS 的情况下提交我的应用程序吗? 如果我这样做,Apple 会拒绝我的应用程序吗?

I am using a third party library which has code for push notifications. But in our code, we don't have anything related to push notifications. So my profile is not enabled with APNS. When I try to push this to iTunes Connect for BETA TESTING, I'm getting below email from Apple. My question now is CAN I SUBMIT MY APP WITH APNS ENABLED even when I am not using push notifications? Will Apple reject my app if I do so?

尊敬的开发者,我们发现您最近的一个或多个问题Myapp Beta"的交付.您的交付成功,但您可能希望在您下次交付时更正以下问题:缺少推送通知权利 - 您的应用似乎包含使用的 API注册 Apple Push Notification 服务,但应用程序签名的权利不包括aps-environment"权利.如果您的应用程序使用 Apple 推送通知服务,确保您的 App ID 已启用推送通知配置门户,并在使用签名后重新提交您的应用程序包含aps-environment"的分发配置文件权利.请参阅本地和推送中的配置和开发"通知编程指南了解更多信息.如果您的应用程序不使用 Apple 推送通知服务,无需任何操作.您可以从以后的提交中删除 API 以停止此警告.如果您使用第三方框架,您可能需要联系开发人员有关删除 API 的信息.更正后问题,您可以使用 Xcode 或 Application Loader 上传一个新的二进制到 iTunes Connect.此致 App Store 团队

Dear developer, We have discovered one or more issues with your recent delivery for "Myapp Beta". Your delivery was successful, but you may wish to correct the following issues in your next delivery: 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. After you’ve corrected the issues, you can use Xcode or Application Loader to upload a new binary to iTunes Connect. Regards, The App Store team

推荐答案

1) Click on your project in Xcode (near the upper left hand corner of Xcode)
2) then click on Capabilities (near the top in the middle of Xcode)
3) Scroll down to Background Modes and expand to reveal the modes
4) Select Remote Notifications.

这样做会给你推送权限,因此应用提交应该没问题.Apple 不会知道您实际上并没有使用推送通知,他们只会运行一个工具来检测您在应用程序中有推送通知处理代码但没有推送权限.做完以上4步应该就可以添加权限了.

Doing this will give you the push entitlement and therefore the app submission should be ok. Apple won't know you are not actually making use of push notifications, they will just be running a tool which detects you have push notification handling code in the app but don't have the push entitlement. Doing the above 4 steps should add the entitlement.

希望这应该足够了,但是您可能还需要在您的配置文件中启用推送通知.这很容易做到,最好的整体推送指南告诉你如何做到这一点:http://www.raywenderlich.com/32960/apple-push-notification-services-in-ios-6-tutorial-part-1

Hopefully that should be enough, however you may also need to enable push notifications in your provisioning profile. That's easy to do, the best overall guide to push which tells you how to do that is here: http://www.raywenderlich.com/32960/apple-push-notification-services-in-ios-6-tutorial-part-1

这篇关于Apple 推送通知 - 应用商店提交的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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