Firebase 在传送到 iTunes 连接后导致问题 "Missing Push Notification Entitlement"
Firebase causes issue "Missing Push Notification Entitlement" after delivery to itunes connect
如您所知,Google 开始使用 Firebase 作为分析工具,因此我想在我当前的项目中使用它。我成功完成了实施并将项目上传到 iTunes Connect。但是我收到了下面的邮件。我不想使用 Firebase 的推送通知选项,但它包含在 SDK 中。我需要删除它吗?如何删除?
会不会导致审稿被拒?
Dear developer,
We have discovered one or more issues with your recent delivery for "Instant Baby Dream". 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
如果您使用的库对推送通知有任何调用 API 并且您没有配置 profile/certificate 使您的应用能够接收推送通知,那么您将收到这封电子邮件来自 Apple。但是,如果您不需要在您的应用中使用推送通知,那么您可以忽略这封电子邮件。
这封电子邮件并不意味着您的应用将被拒绝。我曾经在提交使用 Unity 制作的游戏并使用某个 Prime31 插件实现本机功能时一直收到这封电子邮件,它还利用了推送通知 API 导致我收到这封电子邮件。
你可以忽略它,不会有事的。
如果您使用 Firebase,但不使用 Firebase 推送通知,为避免出现此警告,您应该禁用应用委托调配。只需将值为 NO 的 FirebaseAppDelegateProxyEnabled BOOL 键添加到您的 Info.plist。并且您未来的发布版本将没有任何关于推送通知的警告。
解法:
- 确保您的应用不使用 Firebase Cloud Messaging;
- 在您的Xcode项目中,select应用程序目标;
- 转到 Info 选项卡(或者,select Info.plist 在 Project Navigator );
- 添加
FirebaseAppDelegateProxyEnabled
并将其设置为 NO
;
- 转到功能选项卡并打开推送通知功能;
- 重新生成配置文件。
Objective:虽然这个问题并不意味着您的应用程序将被拒绝,但该电子邮件会发送给有权访问 App Store 上的应用程序记录的所有人连接。对于公司团队帐户,这通常意味着管理人员会收到这封 "We have discovered one or more issues" 电子邮件。对于他们来说,这通常意味着开发团队做错了什么。因此,我被要求摆脱它。
如您所知,Google 开始使用 Firebase 作为分析工具,因此我想在我当前的项目中使用它。我成功完成了实施并将项目上传到 iTunes Connect。但是我收到了下面的邮件。我不想使用 Firebase 的推送通知选项,但它包含在 SDK 中。我需要删除它吗?如何删除? 会不会导致审稿被拒?
Dear developer,
We have discovered one or more issues with your recent delivery for "Instant Baby Dream". 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
如果您使用的库对推送通知有任何调用 API 并且您没有配置 profile/certificate 使您的应用能够接收推送通知,那么您将收到这封电子邮件来自 Apple。但是,如果您不需要在您的应用中使用推送通知,那么您可以忽略这封电子邮件。
这封电子邮件并不意味着您的应用将被拒绝。我曾经在提交使用 Unity 制作的游戏并使用某个 Prime31 插件实现本机功能时一直收到这封电子邮件,它还利用了推送通知 API 导致我收到这封电子邮件。
你可以忽略它,不会有事的。
如果您使用 Firebase,但不使用 Firebase 推送通知,为避免出现此警告,您应该禁用应用委托调配。只需将值为 NO 的 FirebaseAppDelegateProxyEnabled BOOL 键添加到您的 Info.plist。并且您未来的发布版本将没有任何关于推送通知的警告。
解法:
- 确保您的应用不使用 Firebase Cloud Messaging;
- 在您的Xcode项目中,select应用程序目标;
- 转到 Info 选项卡(或者,select Info.plist 在 Project Navigator );
- 添加
FirebaseAppDelegateProxyEnabled
并将其设置为NO
; - 转到功能选项卡并打开推送通知功能;
- 重新生成配置文件。
Objective:虽然这个问题并不意味着您的应用程序将被拒绝,但该电子邮件会发送给有权访问 App Store 上的应用程序记录的所有人连接。对于公司团队帐户,这通常意味着管理人员会收到这封 "We have discovered one or more issues" 电子邮件。对于他们来说,这通常意味着开发团队做错了什么。因此,我被要求摆脱它。