Firebase causes issue “Missing Push Notification Entitlement” after delivery to itunes connect

戏子无情 提交于 2019-11-28 17:27:16

If the library that you're using has any calls to the push notification API and you don't have a provisioning profile/certificate that enables your app to receive push notifications then you will receive this email from Apple. However if you do not need to use push notifications in your app then you can ignore this email.

This email doesn't mean that your app will be rejected. I used to get this email all of the time when submitting games made with Unity and using a certain Prime31 plugin for native functionality, it also made use of the push notification API which caused me to receive this email.

You can ignore it, it will be fine.

If you using Firebase, but don't using firebase push notifications, to avoid this warning you should disable app delegate swizzling. Just adding FirebaseAppDelegateProxyEnabled BOOL key with value NO to your Info.plist. And Your future release builds will be without any warnings about Push notifications.

Solution:

  • Make sure your app does not utilize Firebase Cloud Messaging;
  • In your Xcode project, select the application target;
  • Go to Info tab (alternatively, select Info.plist in Project Navigator);
  • Add FirebaseAppDelegateProxyEnabled and set it to NO;
  • Go to Capabilities tab and turn ON Push Notifications capabilities;
  • Re-generate provision profiles.

Objective: While this issue does not mean that your app will be rejected, the email is sent to everyone who has access to the app record on App Store Connect. For corporate team accounts this usually means that management stuff gets this "We have discovered one or more issues" email. For them it usually means that development team does something wrong. Hence, I've been asked to get rid of it.

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