# アプリの登録と設定ファイルの取得

このページでは、iOSとAndroidについて、Firebaseへのアプリ登録と設定ファイルの取得方法について説明します。

## iOS アプリの登録と設定ファイルの取得 <a href="#ios-app-registration-and-configuration-file-retrieval" id="ios-app-registration-and-configuration-file-retrieval"></a>

<figure><img src="https://3046938759-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MfWrOnV1iKerkfShm9O%2Fuploads%2FQwJX14M1HNKOswniEnWJ%2Ffirebase.gif?alt=media&#x26;token=729a2f3c-59d8-4327-b047-12160c024909" alt="" width="563"><figcaption></figcaption></figure>

1. プロジェクトの概要から、Appleアプリの追加をクリックします。
2. &#x20;「アプリの登録」 セクションで、**`Appleのバンドル ID`** を入力します。
3. 次に、「設定ファイルのダウンロード」 セクションで、**`GoogleService-Info.plist`** ファイルをダウンロードします。\
   設定ファイルは、Monacaプロジェクトのルートフォルダに配置します。
4. 「Firebase SDK の追加」 および 「初期化コードの追加」 セクション では、Monacaプロジェクトでは利用しないため、「次へ」をクリックしてスキップします。

***

## Android アプリの登録と設定ファイルの取得 <a href="#android-app-registration-and-configuration-file-retrievaln" id="android-app-registration-and-configuration-file-retrievaln"></a>

<figure><img src="https://3046938759-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MfWrOnV1iKerkfShm9O%2Fuploads%2FT5rAlqmsLP394T4BDU2F%2FScreenFlow.gif?alt=media&#x26;token=976d8703-ddd8-41f6-9cca-3ffb1b099f9a" alt="" width="563"><figcaption></figcaption></figure>

1. プロジェクトの概要から、Androidアプリの追加をクリックします。
2. &#x20;「アプリの登録」 セクションで、**`Androidパッケージ名`** を入力します。
3. 次に、「設定ファイルのダウンロード」 セクションで、**`google-services.json`** ファイルをダウンロードします。設定ファイルは、Monacaプロジェクトのルートフォルダに配置します。
4. 「Firebase SDK の追加」  セクション では、Monacaプロジェクトでは利用しないため、「次へ」をクリックしてスキップします。

***

## ウェブアプリの登録と設定情報の取得

{% embed url="<https://youtu.be/Wz51vBxRMAo>" %}

1. プロジェクトの概要から、プロジェクトの設定をクリックします。
2. **アプリを追加** ボタンをクリックします。
3. ウェブアプリのアイコンをクリックします。
4. アプリのニックネームを入力して、登録ボタンをクリックします。

これでウェブアプリの登録は完了です。

設定情報は、「SDKの設定と構成」 セクションに記載されています。

<figure><img src="https://3046938759-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MfWrOnV1iKerkfShm9O%2Fuploads%2FRLLK2OWamBiGFas6MflH%2F%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202023-12-19%209.56.17.png?alt=media&#x26;token=f6232c30-9928-4deb-916d-adc6bf720921" alt="" width="563"><figcaption><p>ウェブアプリの設定情報を確認する</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ja.docs.monaca.io/external-service-integration-guide/firebase/app-registration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
