> 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/ios-sdk-appendix/appendix-action-hidden-condition-ios-sdk.md).

# \[iOS]アプリ内メッセージが非表示となる条件

アプリ内メッセージは基本的に画面単位で表示されるようにSDK側で制御されています。\
そのため画面遷移などが発生した場合は、通常表示中のアプリ内メッセージは非表示となります。

現在アプリ内メッセージが非表示となるパターンは、以下の通りです。

* 画面遷移
* アプリ内メッセージ内のリンククリック
* Viewイベントの送信
* `dismiss` または `suppress` メソッドの呼び出し

なお「画面遷移」と「アプリ内メッセージ内のリンククリック」の非表示条件については、別途以下に記述しています。

## 画面遷移によるアプリ内メッセージの非表示条件

一般的に利用頻度が高いコントローラにおいて画面遷移処理が呼び出された場合に、SDKは画面遷移が行われたと判定し、アプリ内メッセージを非表示にします。

詳細については [画面の境界を認識する条件 - 画面遷移の発生](/ios-sdk-appendix/concepts-boundary-transition-ios-sdk.md) をご覧ください。

## アプリ内メッセージ内のリンククリックによるアプリ内メッセージの非表示条件

アプリ内メッセージ内のリンク（aタグ）の `target` 属性の値によって、リンククリック時にアプリ内メッセージの表示状態が変わります。

属性値毎のリンククリック時の挙動は、以下の通りです。

| 属性値      | 挙動  |
| -------- | --- |
| \_blank  | 表示  |
| \_self   | 非表示 |
| \_top    | 非表示 |
| \_parent | 非表示 |
| 未指定      | 非表示 |


---

# 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/ios-sdk-appendix/appendix-action-hidden-condition-ios-sdk.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.
