# React Native

## ステップ1：前提条件

### Android の要件

すべてのアプリは、サブスクリプションを取得して通知を送信するために、Firebase プロジェクトと一致する認証情報を持っている必要があります。以下のリンクに従って、アプリ用の Firebase プロジェクトを作成し、認証情報を当社のプラットフォームに追加してください。

SDKをアプリに統合する前に、以下の要件を満たしている必要があります：

* Google Play ストアサービスがインストールされた、API 19+（Android 4.4）で動作するAndroid端末またはエミュレータ。
* 次を使用するアプリ [<mark style="color:青色;">Jetpack（AndroidX）</mark>](https://developer.android.com/jetpack/androidx/migrate)
* Firebase Sender ID と Server API Key、またはサービスアカウント。まだお持ちでない場合は、以下の手順に従ってください [<mark style="color:青色;">こちらのドキュメント</mark>](https://documentation.pushly.com/pushly-ja/integration/implementation-steps/android/firebase-apurinosettoappu) それらを生成します。
* SDKキー：Pushlyプラットフォームの `ドメイン設定` ページの `詳細` > `ドメイン情報` セクションから取得します。

### iOS の要件

ユーザーを通知に登録し始めるには、P8 キー（推奨）または P12 証明書のいずれかが必要です。これらはいずれも Apple Developers ポータルで生成できます。

* 1つの [<mark style="color:青色;">Apple Developer アカウント</mark>](https://developer.apple.com/account/) 管理者権限を持つ
* アプリケーションの App Bundle ID（例： `com.pushly.example`)
* Push Notifications 機能が追加された iOS アプリケーションまたは XCode プロジェクト

上記に加えて、次の要件を満たしている必要があります。

* 開発およびテスト用の iOS 11+ デバイス（iPhone、iPad、または iPod Touch）。
  * **注：** XCode シミュレーターはリモートプッシュ通知をサポートしていません。物理デバイスを使用する必要があります。
* XCode 13+ がインストールされた Mac OS デバイス。
* iOS の P12 プッシュ証明書または P8 キー。これらをまだお持ちでない場合は、 [<mark style="color:青色;">こちらのドキュメント</mark>](https://documentation.pushly.com/pushly-ja/integration/implementation-steps/apple-ios/p8-kmataha-p12-nosettoappu) それらを生成します。
* SDKキー：Pushlyプラットフォームの `ドメイン設定` ページの `詳細` > `ドメイン情報` セクションから取得します。


---

# 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://documentation.pushly.com/pushly-ja/integration/implementation-steps/react-native.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.
