3
0

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.

[iOS][FCM] "application:didFailToRegisterForRemoteNotificationsWithError: Appの有効な“aps-environment”エンタイトルメント文字列が見つかりません" というエラーでPUSH通知が届かない

Posted at

公式ガイド に従って、

  • Firebaseプロジェクトの設定(Firebase Console)
  • SDKと初期化処理を追加(Xcode)
  • AppID, APNs用キー, プロビジョニングプロファイルの作成 (Apple Developer > Certificates, Identifiers & Profiles)
    を行って テスト送信 をしてみるが、通知が届かかった。

エラーログを見ると

[Firebase/Messaging][I-FCM012002] Error in application:didFailToRegisterForRemoteNotificationsWithError: Appの有効な“aps-environment”エンタイトルメント文字列が見つかりません

というエラーが出ている。
どうやら下記の設定が不足していたようだ。

image.png

↑ONに変えると、無事通知が届くようになった。

参考:
https://develop.hateblo.jp/entry/ios-firebase-cloud-messaging

3
0
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
3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?