> For the complete documentation index, see [llms.txt](https://documentation.pushly.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.pushly.com/pushly-ja/integration/implementation-steps/react-native.md).

# React Native

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

### Android の要件

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

SDK をアプリに統合する前に、次の要件を満たす必要があります:

* API 24 以上（Android 7.0）で動作し、Google Play ストア サービスがインストールされている Android デバイスまたはエミュレーター。
* を使用するアプリ [<mark style="color:青;">Jetpack（AndroidX）</mark>](https://developer.android.com/jetpack/androidx/migrate)
* Firebase Sender ID と Server API Key、または Service Account。まだお持ちでない場合は、 [<mark style="color:青;">当社のドキュメント</mark>](/pushly-ja/integration/implementation-steps/android/firebaseapuri.md) を参照して生成してください。
* SDK Key: Pushly プラットフォームの `ドメイン設定` ページの `詳細` > `ドメイン情報` セクションから取得します。

{% hint style="warning" %}
**React Native SDK 1.7 以上**

同梱されているネイティブ Android SDK は `androidx.core` 1.17 に依存し、Kotlin 2.2 のメタデータを含むため、利用するプロジェクトは一致するツールチェーンでビルドする必要があります:

* Kotlin 2.2 以上
* Android Gradle Plugin 8.9.1 以上
* `compileSdk` 36
* `minSdk` 24
* JDK 17〜21
  {% endhint %}

#### React Native のアーキテクチャ

この SDK はどちらの React Native アーキテクチャでも動作します。TurboModule と従来のブリッジ実装の両方を同梱しており、プロジェクトの `newArchEnabled` Gradle プロパティを使って切り替えます。

### 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 15.1 以上のデバイス（iPhone、iPad、または iPod Touch）、または [<mark style="color:青;">シミュレーターでのテスト</mark>](/pushly-ja/integration/implementation-steps/apple-ios/sdk-swift-obj-c.md#testing-on-a-simulator).
* XCode 15.1 以上がインストールされた Mac OS デバイス。
* iOS P12 Push 証明書または P8 キー。まだお持ちでない場合は、 [<mark style="color:青;">当社のドキュメント</mark>](/pushly-ja/integration/implementation-steps/apple-ios/p8kmatahap12no.md) を参照して生成してください。
* SDK Key: Pushly プラットフォームの `ドメイン設定` ページの `詳細` > `ドメイン情報` セクションから取得します。

{% hint style="info" %}
iOS のデプロイ先ターゲットと XCode のバージョンは Pushly SDK ではなく React Native によって設定されるため、新しい React Native のバージョンでは、これらの両方がここに記載された下限を上回る場合があります。
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://documentation.pushly.com/pushly-ja/integration/implementation-steps/react-native.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
