ステップ1:APN(Apple Push Notification)キーを取得する
- 👉 Apple Developer Profile にログインします。
- Keys ページに移動します

- 「+」をクリックして新しいキーを追加します。

- キーに名前を付けます
- ☑️ Apple Push Notifications Service (APNs) にチェックを入れ、
- Configure をクリックします。

- APN環境として「Production」を選択します
- 保存します

Certificates, Identifiers & Profiles ページのKey registrationセクションに戻ります。
- 「continue」をクリックします

- キーをRegisterします

- キーファイルをダウンロードする
- Team IDをコピーする(同じページの右上にあります)
- Key IDをコピーする

ステップ2:Apple Cloud Messgingの設定
- Firebase Consoleにアクセスします。
- アプリのプロジェクトに入ります

- プロジェクト設定の下にある Cloud Messaging タブをクリックします
- Apple app configuration ブロック内の APNs Authentication Key セクションに移動します。
- No production APNs auth key と表示されているセクションを見つけます
- Upload をクリックします

- APNs auth key をアップロードします
- Key ID/ Team ID を貼り付けます
- Upload をクリックしてAPNキーファイルと認証情報を送信します。これで Apple Developer Account と Firebase の連携が正常に完了しました。

これで、Apple Cloud messaging の設定が完了しました。
Apple Firebaseの連携については Androidアプリ を、EvlopアプリのダッシュボードとFirebaseの連携については Firebase admin SDK をご覧ください。