> ## Documentation Index
> Fetch the complete documentation index at: https://docs.auxia.io/llms.txt
> Use this file to discover all available pages before exploring further.

# クライアントアプリケーションへのFirebase統合

> プッシュ通知を受信するためのクライアントアプリケーションのセットアップ

<Note>
  日本語版はAIによる翻訳です。正確な情報については[英語版](/deploying-auxia/delivery-integrations/firebase-push-notifications-integration-manual/integrate-firebase-on-the-client-application)をご参照ください。
</Note>

<aside>
  クライアントアプリケーションが既にFirebaseおよび以下の2つのプラグインと統合済みの場合、このセクションはスキップしてください。

  1. [Firebase Cloud Messaging](https://firebase.google.com/docs/cloud-messaging)
  2. [Google Analytics](https://firebase.google.com/docs/analytics)
</aside>

<br />

クライアントアプリケーションはFirebaseと統合し、以下の2つのプラグインを追加する必要があります:

1. **Firebase Cloud Messaging**: プッシュ通知を有効にします。セットアップガイドは[こちら](https://firebase.google.com/docs/cloud-messaging)をご参照ください。
2. **Google Analytics**: 標準的なGoogle Analytics統合により、基本的な[アプリ利用データが自動的に収集されます](https://support.google.com/analytics/answer/9353532?sjid=11579915495021032065-NC)。統合セットアップガイドは[こちら](https://firebase.google.com/docs/analytics)をご参照ください。

<br />

特にプッシュ通知については、以下のイベントが自動的にトラッキングされます:

| イベント                           | 自動トリガーの条件                                                      | パラメータ                                                                                                           |
| ------------------------------ | -------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- |
| notification\_dismiss (app)    | Firebase Cloud Messaging (FCM) から送信された通知をユーザーが閉じた場合（Androidのみ） | message\_name, message\_time, message\_device\_time, message\_id, topic, label, message\_channel                |
| notification\_foreground (app) | FCMから送信された通知がアプリのフォアグラウンド中に受信された場合                             | message\_name, message\_time, message\_device\_time, message\_id, topic, label, message\_channel, message\_type |
| notification\_open (app)       | FCMから送信された通知をユーザーが開いた場合                                        | message\_name, message\_time, message\_device\_time, message\_id, topic, label, message\_channel                |
| notification\_receive (app)    | FCMから送信された通知がアプリのバックグラウンド中にデバイスで受信された場合（Androidのみ）             | message\_name, message\_time, message\_device\_time, message\_id, topic, label, message\_channel, message\_type |

すべてのイベントの一覧は[こちら](https://support.google.com/analytics/answer/9234069?sjid=11579915495021032065-NC)をご確認ください。
