> 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-faq/boundary-behavior-in-webview.md).

# WebViewに遷移した際の画面境界の認識と、考慮すべき事項について

## 画面境界の認識について

SDKでは画面の境界（[iOS](/ios-sdk-appendix/concepts-boundary-transition-ios-sdk.md), [Android](/android-sdk-appendix/concepts-screen-boundary-android-sdk.md)）を認識し、IAM（=popup）形式のアクションはこの画面境界に依存した振る舞いをします。

※IAM表示前後で画面境界が認識された場合、デフォルトの設定ではIAMは非表示化されます。詳細については[ネイティブアプリにおける接客表示制御とは](https://support.karte.io/post/3JaA3BlXQea59AaPGxD3bb) をご確認ください。

## WebView遷移時に考慮すべき事項

この画面境界は原則としてNativeの画面でのみ認識されるため、Nativeの画面からWebViewに遷移した際には画面境界は認識されません。

そのため、WebViewに遷移する直前の画面でIAMを表示（=配信）した場合に、WebView遷移後に意図せずIAMが画面上に残存してしまう場合があります。\
（※Native画面間の遷移では通常画面遷移時に画面境界が認識され非表示化されるが、画面境界が認識さないため非表示化されない）

## 対応策等

このような状況への対応策として、Native画面からWebViewへの遷移時にdismiss（[iOS](/ios-sdk-appendix/appendix-iam-control-ios-sdk.md), [Android](/android-sdk-appendix/appendix-iam-control-android-sdk.md)）を実行することで、画面遷移時に意図せずIAMが残存しないような制御が可能です。

このdismissはKARTE SDKが表示しているIAMについて、Native側から強制的に非表示化するためのメソッドです。


---

# 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-faq/boundary-behavior-in-webview.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.
