> 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/ios-silent-push.md).

# iOSのサイレント通知を送信する

このドキュメントではiOSアプリにサイレント通知を送信する方法を説明します。サイレント通知自体の仕様については[Appleの公式ドキュメント](https://developer.apple.com/documentation/usernotifications/pushing-background-updates-to-your-app)を参照ください。

## 1. iOSアプリをバックグラウンドモードに対応させる

サイレント通知の受信にはアプリ側で事前に設定が必要です。詳細は[Appleの公式ドキュメント](https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/pushing_background_updates_to_your_app)を参照ください。

## 2. KARTEからプッシュ通知を送信する準備を行う

KARTEからアプリにプッシュ通知を送信するためには事前に設定が必要となります。

詳細は[アプリプッシュ通知の設定方法](https://support.karte.io/post/4Kz7x02d58IADB99RjIfr8)を参照ください。

## 3. サイレント通知用に通知ペイロードを追加する

送信方法に応じて適宜設定が必要です。

### ターゲット配信の場合

サイレント通知送信する際は、ネイティブプッシュ通知の接客テンプレートから接客を作成した後、変数エディタで以下3つのペイロードを追加してください。

ターゲット配信でiOSのサイレント通知を送信する場合には、アクションの変数として下記の3つの変数設定が追加で必要です。

| 静的変数名                       | 型    | 値          |
| --------------------------- | ---- | ---------- |
| content\_available          | 真偽値　 | true       |
| apns.headers.apns-priority  | 数値   | 5          |
| apns.headers.apns-push-type | テキスト | background |

※apns-priority等は入力時にエラー表示になる場合もありますが、ペイロードの指定に際しては、エラーを無視して保存することで設定頂けます。詳細は[ プラットフォーム固有のペイロード値の設定方法について](https://app.developers.karte.io/app-send-notification/pages/fgFWdQwuFelO4w0Maife#プラットフォーム固有のペイロード値の設定方法について) を御覧ください。


---

# 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://app.developers.karte.io/app-send-notification/ios-silent-push.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.
