14
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Unity&iOSで、Missing Push Notificationと言われるときの対応メモ

Posted at

Missing Push Notification Entitlement

Unityで作ったアプリをAppleの審査にだしたら、次のような内容のメールが来た。

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.

どうやら、アプリにPush Notification関係のコードが含まれているから、ちゃんと設定しろ(Profileとか?)ということらしい。

対策

UnityAppController.mmに含まれる、以下の3つのメソッドをコメントアウトしてやれば良いらしい。

application:(UIApplication*)application didReceiveRemoteNotification:(NSDictionary*)userInfo
application:(UIApplication*)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData*)deviceToken
application:(UIApplication*)application didFailToRegisterForRemoteNotificationsWithError:(NSError*)error

スクリーンショット 2015-11-13 9.47.43.png

参考URL

【Unity】Missing Push Notification Entitlement Unity iOSアプリ申請アップロード時のエラー対応

14
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
14
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?