> 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/flutter/push-message/flutter-android-push-message-customization.md).

# Android 푸시 아이콘과 채널 설정

## 푸시 메시지 아이콘 변경 <a href="#change-push-icon" id="change-push-icon"></a>

{% hint style="info" %}
Flutter SDK 2.22.0 버전 이상에서 지원하는 기능입니다.
{% endhint %}

`android/app/src/main/AndroidManifest.xml`의 아래 키에 앱의 로컬 리소스를 지정해 푸시 아이콘을 변경할 수 있습니다.

{% hint style="warning" %}
구글 정책에 따라 일반 Android 스마트폰에서는 색상이 포함된 아이콘을 푸시 아이콘으로 설정할 수 없습니다.
{% endhint %}

{% hint style="info" %}
작은 아이콘, 큰 아이콘, 배경 색상에 대한 자세한 내용은 [Android 푸시 디자인 가이드](https://developer.android.com/design/ui/mobile/guides/home-screen/notifications?hl=ko#notification-header)에서 확인할 수 있습니다.
{% endhint %}

<table><thead><tr><th width="400">key</th><th>설명</th></tr></thead><tbody><tr><td><code>io_hackle_android_default_notification_small_icon</code></td><td>small icon을 설정합니다.</td></tr><tr><td><code>io_hackle_android_default_notification_large_icon</code></td><td>large icon을 설정합니다.</td></tr><tr><td><code>io_hackle_android_default_notification_color</code></td><td>small icon background 색상을 설정합니다.</td></tr></tbody></table>

{% code title="android/app/src/main/AndroidManifest.xml" %}

```xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
    <uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
    <application
        android:label="flutter_app"
        android:name="${applicationName}"
        android:icon="@mipmap/ic_launcher">
       ...
       <meta-data
            android:name="io_hackle_android_default_notification_small_icon"
            android:resource="@drawable/ic_push_small"/>

       <meta-data
            android:name="io_hackle_android_default_notification_large_icon"
            android:resource="@drawable/ic_push_large"/>

       <meta-data
            android:name="io_hackle_android_default_notification_color"
            android:resource="@color/pie" />
       ...
    </application>
</manifest>
```

{% endcode %}

### 대시보드에서 푸시 메시지 아이콘 수정 <a href="#edit-push-icon-in-dashboard" id="edit-push-icon-in-dashboard"></a>

대시보드에서 푸시 아이콘을 설정하면 푸시의 large icon이 바뀝니다.\
로컬 리소스로 푸시 아이콘을 설정하고 대시보드에서도 푸시 아이콘을 보낸 경우 대시보드에 설정한 아이콘을 사용합니다.

## 푸시 채널 지원 <a href="#push-channel-support" id="push-channel-support"></a>

{% hint style="info" %}
Flutter SDK 2.23.0 버전 이상에서 지원하는 기능입니다.
{% endhint %}

앱에 미리 만든 알림 채널로 핵클 푸시 메시지를 받을 수 있습니다.\
앱에 없는 채널 ID로 푸시를 받으면 핵클이 제공하는 기본 채널로 받습니다.

채널은 `MainActivity`의 `onCreate` 등 앱 시작 시점에 만듭니다.\
채널을 만드는 방법은 [Android 개발자 문서](https://developer.android.com/develop/ui/views/notifications/channels?hl=ko)에서 확인할 수 있습니다.

{% hint style="info" %}
푸시를 받을 때 알림 팝업을 표시하려면 푸시 채널의 중요도를 `IMPORTANCE_HIGH`로 설정하세요.
{% endhint %}


---

# 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/flutter/push-message/flutter-android-push-message-customization.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.
