> For the complete documentation index, see [llms.txt](https://app.developers.karte.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://app.developers.karte.io/app-send-notification/app-test-notification.md).

# テストメッセージを送信する

## プッシュ通知のテスト送信

SDKの実装及び管理画面上での各種設定の完了後に、プッシュ通知のテスト送信を行い正常に設定できているか確認を行います。\
※管理画面上での各種設定方法は[アプリプッシュ通知の設定方法](https://support.karte.io/post/4Kz7x02d58IADB99RjIfr8)をご確認ください。

## テスト送信の対象ユーザーを探す

以下の表に基づき、事前にテスト送信の対象者を探し、送信に必要なIDを控えてください。

| 利用機能          | 送信に必要なID                               | 確認方法                                                                                                                                                                                                                                                                 |
| ------------- | -------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| KARTE Message | fcm\_token                             | [テストメッセージの送信対象ユーザーを探す](https://app.developers.karte.io/purattofmu/app-send-notification/app-test-notification-find-myself)に従ってユーザーを特定した後、[ユーザーデータ](https://support.karte.io/post/7H8wFlIqBAzfLVJfPRiKWr)からplugin\_native\_app\_identifyイベントで送信されるfcm\_tokenを確認してください |
| ターゲット配信       | user\_id（visitorの場合はvis-始まりのidで送信可能です） | [テストメッセージの送信対象ユーザーを探す](https://app.developers.karte.io/purattofmu/app-send-notification/app-test-notification-find-myself)を確認してください                                                                                                                                  |

## テスト送信の方法

ご利用の機能に合わせて、下記の手順をご確認ください。

### KARTE Message

テストメッセージの送信対象を特定したら、下記手順でキャンペーンの作成を行い、テストメッセージを送信します。

1. キャンペーンを作成し、`配信タイプを選択`からアプリプッシュを選択し、アプリプッシュのアクションを作成してください
2. アクションの`編集`を選択し、エディタを開きます
3. 画面右上の`テスト配信`を選択します

![テスト配信を選択](https://2393392196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH4XuUv5EgXiqltJXSiRd%2Fuploads%2Fgit-blob-522d7cd7d2bcf05cafc9a52494566d220956ebdc%2Fmessage_push_test_send_1.png?alt=media)

4. 選択後に表示される`テスト配信設定`の画面から、`テストメッセージの送信対象を探す`で調べたfcm\_tokenを、テキストフィールドに入力して`Enter`キーを押します

![fcm\_tokenの入力](https://2393392196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH4XuUv5EgXiqltJXSiRd%2Fuploads%2Fgit-blob-e224be32c0a11ca5f4e05930fc696e785099d918%2Fmessage_push_test_send_2.png?alt=media)

### ターゲット配信

テストメッセージの送信対象を特定後に、下記手順で接客サービスの作成を行い、テスト送信を実施します。

#### 接客サービスを作成する

管理画面のグローバルナビゲーションから、「アクション」> 「接客サービス」を選択して[接客サービス一覧画面](https://support.karte.io/post/4oS9HO4ruFFaOwT1eAZNkM#2-0)に遷移します。

![グローバルナビゲーションから接客サービスを選択](https://2393392196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH4XuUv5EgXiqltJXSiRd%2Fuploads%2Fgit-blob-04e84cd200296bbed5c69d61d3957bb3921b9b4b%2F05fe8eb-_2020-12-10_18.08.27.png?alt=media)

1. 接客サービス一覧画面右上にある `作成` ボタンをクリックします。
2. 接客サービス名を入力します。
3. `アクションを追加` をクリックします。
4. `ユーザーに届ける` をクリックします。
5. `ネイティブプッシュ通知` をクリックします。
6. `ネイティブアプリプッシュ通知（テキスト）` をクリックします。

接客サービスの作成・配信について詳細は[サポートサイト ドキュメント アクション / 作成・ 配信設定](https://support.karte.io/docs/campaign/create_deliver_settings_new)をご確認ください。

#### テスト送信の実行

追加したアクションの右側にある `...` をクリックし、メニュー内の `テストユーザーに送信` をクリックします。

![2458](https://files.readme.io/3a11737-Cursor___-_NativeDebugTest_-_KARTE.jpg)

`テストメッセージの送信対象を探す` で調べたユーザーIDを、テキストフィールドに入力して `Enter` キーを押します。

![1674](https://files.readme.io/fb7aae0-Cursor___-_NativeDebugTest_-_KARTE.jpg)

ユーザーIDの入力が行われたら、`送信` ボタンをクリックします。\
しばらくするとメッセージが送信されます。

## テスト送信が失敗する場合

[KARTE for Appプッシュ通知で問題が発生した時のチェックリスト](https://support.karte.io/post/5IUmM2QOEjJjyCE5Lq9aEf)をご確認ください。


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://app.developers.karte.io/app-send-notification/app-test-notification.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
