強火で進め

このブログではプログラム関連の記事を中心に書いてます。

iOSアプリを申請した時に「Missing Push Notification Entitlement」というメールを貰った時の対処法

Unityユーザー助け合い所にてiOSアプリを申請したら審査担当から「Missing Push Notification Entitlement」というメールを貰ったというコメントが有りました。

こちらは Unity のプラグインを作ってる有名な会社、 prime[31]の Etcetera Plugin (※)というプラグインが原因だったりします。
※1つのプラグインでちょっとした便利機能が複数提供されているプラグイン

このプラグインで提供されている機能の中の1つにPUSH通知も存在します。

その為、 Unity のプログラムの中でPUSH通知の機能を使ってなくても Xcode のコード上にはPUSH通知のコードが含まれています。

この様な原因で審査担当からメールが届いたのだと思われます。

この件については prime[31]の Etcetera Plugin のドキュメントをよく読むとちゃんと以下の様な注意書きが見つかりました。

Important note concerning push notifications: it appears Apple's automated scanners have again started to incorrectly scan and detect push notification code that isn't touched. If you are not using push notifications just delete the AppControllerPushAdditions files before submitting to Apple and that should appease their static code analyzer.

prime[31] - Unity plugin documentation
http://prime31.com/docs#iosEtc

ざっくり、翻訳すると「PUSH通知使ってなくてもAppleのコード解析ツールでPUSH通知のコードが含まれてると誤検出するのであなたがPUSH通知機能を使ってないなら AppControllerPushAdditions のファイル( .h と .m ファイルかな?)を削除する様に」との事です。これでこの問題は解決出来るみたいです。

Unityユーザー助け合い所
https://www.facebook.com/groups/unityuserj/permalink/476893349037277/