# WebApp (웹앱) 연동

앱에서 WebView를 이용해서 자사 웹사이트를 랜더링 하는 경우 웹앱 연동을 고려할 수 있습니다.

앱 내부에 비즈니스 로직이 있을 때 혹은 푸시를 사용하는 경우 웹앱 연동을 추천합니다.

웹앱 연동 시 웹에서 호출하는 핵클의 기능이 앱 SDK를 통해 동작하게 됩니다.

웹앱 연동 시 아래와 같은 장점이 있습니다.

* 앱의 유저 정보를 웹사이트에 주입해 앱,웹의 사용자를 일관된 방식으로 관리 가능합니다.
* 웹과 앱 구분 없이 핵클의 모든 기능을 사용할 수 있습니다.

{% hint style="danger" %}
**웹앱 연동을 하지 않은 경우 웹과 앱의 식별자가 달라 동일한 유저로 인식되지 않습니다.**

* 웹앱 연동을 하지 않고 웹과 앱의 SDK를 각각 사용하는 경우 직접 식별자 연동 기능을 구현해야 합니다.
* 웹 SDK와 앱 SDK는 별개의 디바이스 ID를 사용하기 때문에 하나의 앱에서 2개의 디바이스 ID가 생성됩니다.
  {% endhint %}


---

# 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://docs.hackle.io/development-guide/faq/web-app-intergration.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.
