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

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

问题描述

我使用的具有code推送通知第三方库。但是,在我们code,我们没有推通知相关的任何事情。所以,我的个人资料未与APNS启用。当我试图推动这iTunes Connect中的Beta测试,我得到以下电子邮件从苹果。我现在的问题是,我可以提交的时候,我不使用推送通知我与APNS应用启用什? 苹果是否会拒绝我的应用程序,如果我这样做?


  

尊敬的开发商,我们发现一个或多个问题与您最近的
  交付MYAPP测试。你的交货是成功的,但你可能
  要纠正你的下一个传递了以下问题:缺少
  推送通知的权利 - 您的应用似乎包括使用API
  与苹果的推送通知服务,但该应用注册
  签名的权利不包括在APS-环境
  权利。如果应用程序使用Apple推送通知服务,
  确保在推送通知启用您的应用程序ID
  Provisioning户,并与签署您的应用程序后重新
  其中包括了APS-环境发行配置文件
  权利。请参阅部署与发展在本地和推
  通知编程指南以获取更多信息。如果您的应用功能
  不要使用苹果的推送通知服务,则不需要任何操作。
  您可以从未来的报告中删除API来阻止这种警告。
  如果使用第三方框架,你可能需要联系
  开发商有关卸下API的信息。当你已经纠正
  这些问题,你可以使用X code或应用程序加载器上传新
  二进制到iTunes连接。此致App Store的团队



解决方案

  1)X code(点击你的项目接近X $ C $的左上角C)
2),然后单击功能(靠近顶部的x code的中间)
3)向下滚动到背景模式,扩大揭示模式
4)选择远程通知。

这样做会给你推送的权利,因此提交的应用应该没问题。
苹果公司将不知道你是不是实际上是利用推送通知,他们将只运行一个工具,它会检测您推送通知处理code的应用程序,但不具备推权利。做上述4个步骤应该补充的权利。

希望这应该足够,但是您可能还需要启用您的provisioning profile推送通知。这很容易做到,最佳的整体指导,推动它告诉你如何做到这一点是在这里:
http://www.raywenderlich.com/32960/apple-push-notification-services-in-ios-6-tutorial-part-1

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?

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.

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.

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

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

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