> For the complete documentation index, see [llms.txt](https://docs.hackle.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hackle.io/development-guide/android/android-push-message-setup/android-push-message-integration.md).

# 푸시 메시지 연동

Firebase와 핵클 SDK를 연동해 Android 앱에서 핵클 푸시 메시지를 받습니다.

{% stepper %}
{% step %}
**Firebase 프로젝트 연동하기**

안드로이드 앱에서 푸시 메시지를 사용하기 위해서는 핵클 워크스페이스와 Firebase 프로젝트 연동 설정이 필요합니다.

{% content-ref url="/pages/Y3ElrX93z1lmQQsVCQgx" %}
[Android FCM 연동](https://docs.hackle.io/external-link/crm-channels/fcm-integration.md)
{% endcontent-ref %}
{% endstep %}

{% step %}
**Firebase Cloud Messaging SDK 연동하기**

[Firebase Cloud Messaging 설치 가이드](https://firebase.google.com/docs/cloud-messaging/android/client) 를 참고하여 안드로이드 앱 설정을 완료해주세요.
{% endstep %}

{% step %}
**핵클 SDK와 연동하기**

[SDK 연동](https://docs.hackle.io/development-guide/android.md) 를 참고해서 핵클 SDK 의존성을 추가하고 SDK를 초기화 합니다.

앱 빌드, 실행 시 자동으로 푸시 토큰이 등록 됩니다.

{% hint style="info" %}
정상적으로 SDK 연동이 완료되면 자동으로 푸시 토큰 수집이 되고, 푸시 수신, 푸시 클릭 처리가 가능합니다.
{% endhint %}
{% endstep %}

{% step %}
**푸시 메시지 테스트**

**토큰 확인**

* [사용자 식별자 확인하기 가이드](https://docs.hackle.io/development-guide/android/android-user-explorer.md) 를 통해 안드로이드 기기에 설정된 토큰을 확인할 수 있습니다.
* [사용자 조회 가이드](https://docs.hackle.io/user-view/user-profile.md) 를 통해 특정 사용자에 할당 된 안드로이드 푸시 토큰을 확인할 수 있습니다.

**발송 테스트**

* [푸시 메시지 테스트 발송 가이드](https://docs.hackle.io/crm-marketing/push-message-guide/create-campaign.md#id-3-1)를 참고하여 푸시 메시지를 안드로이드 기기에서 확인합니다.
  {% endstep %}

{% step %}
**푸시 메시지 수신**

푸시 수신 시 status bar와 알림센터에 아이콘이 표시됩니다.

* 갤럭시 안드로이드 스마트폰 환경에서는 앱 아이콘이 표시됩니다.
* 일반 안드로이드 스마트폰 or 시뮬레이터 환경에서는 흰색 원 아이콘이 표시됩니다.
* 푸시메시지 아이콘 변경 기능을 이용한 경우 변경한 아이콘이 표시됩니다.
  {% endstep %}
  {% endstepper %}

## 딥링크 이동 <a href="#deeplink-navigation" id="deeplink-navigation"></a>

푸시 메시지 클릭 시 링크 처리는 [딥링크](https://docs.hackle.io/development-guide/android/android-deeplink.md)를 참고하세요.


---

# 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://docs.hackle.io/development-guide/android/android-push-message-setup/android-push-message-integration.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.
