# Flutter

{% hint style="info" %}
ネイティブアプリのプッシュ連携は現在クローズドベータ版です。ベータパートナーになるための詳細については、担当のアカウントマネージャーにお問い合わせください。
{% endhint %}

## ステップ 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、または Service Account。まだこれらをお持ちでない場合は、 [<mark style="color:青;">当社のドキュメント</mark>](https://documentation.pushly.com/pushly-ja/integration/implementation-steps/android/firebase-apurinosettoappu) に従って生成してください。
* SDK キー: Pushly Platform の `ドメイン設定` ページの `詳細` > `ドメイン情報` セクションにあります。

### 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 Simulator はリモートプッシュ通知をサポートしていません。物理デバイスを使用する必要があります。
* 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 Platform の `ドメイン設定` ページの `詳細` > `ドメイン情報` セクションにあります。


---

# 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/flutter.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.
