# 푸시 알림 발송을 위한 사전 준비

푸시 알림을 발송하기 위해서는 다음의 사전 준비가 필요합니다.

## **1. Firebase 비공개 키 발급 및 등록**

Android 및 iOS 기기에 푸시 알림을 발송하기 위해 필수적인 **Firebase 비공개 키**를 발급받고 등록하는 과정입니다. 비공개 키를 등록하면 별도의 개별 설정 없이 Android와 iOS 앱을 통합하여 연동할 수 있습니다.

### **1-1. Firebase 프로젝트 생성**

<figure><img src="/files/rs5ZMW89BaYh6Liz8eHC" alt=""><figcaption></figcaption></figure>

[**Firebase Console**](https://console.firebase.google.com/?authuser=6)에 접속하여 새로운 프로젝트를 생성해 주세요.\
이미 Android/iOS 앱이 등록된 프로젝트가 있다면 [**\[1-3. 비공개 키 생성\]**](#id-1-3)으로 이동해 주세요.

### **1-2. 앱 추가 (Android / iOS)**

<figure><img src="/files/mjdBJ0KtBywEHSydteiW" alt=""><figcaption></figcaption></figure>

생성된 프로젝트에 운영 중인 앱 정보를 등록해야 합니다.\
프로젝트 개요 화면에서 Android 및 iOS 아이콘을 클릭하여 앱을 추가해 주세요.

{% hint style="info" %}
각 OS별 상세 등록 방법은 아래 공식 도움말을 참고해 주세요.

* [**Firebase Android 앱 추가 가이드**](https://firebase.google.com/docs/android/setup?hl=ko\&authuser=6)
* [**Firebase iOS 앱 추가 가이드**](https://firebase.google.com/docs/ios/setup?hl=ko\&authuser=6)
  {% endhint %}

### **1-3. 비공개키 생성**

<figure><img src="/files/3NObbfOUSQxWNi7RAGNp" alt=""><figcaption></figcaption></figure>

(1) 왼쪽 상단의 **\[설정(⚙️) > 프로젝트 설정]**&#xC744; 클릭해 주세요.

(2) 상단 탭 메뉴 중 **\[서비스 계정]**&#xC744; 선택해 주세요.

(3) 화면 하단의 **\[새 비공개 키 생성]**&#xC744; 클릭하여 **JSON 형식의 비공개키 파일**을 다운로드해 주세요.

{% hint style="warning" %}
비공개 키 파일은 재발급이 번거로우며 보안상 중요하므로 외부 노출에 주의해 주세요.
{% endhint %}

### **1-4. 그루비에 키 등록**

<figure><img src="/files/8sWlTk9gffL1qXTSS4X0" alt=""><figcaption></figcaption></figure>

(1) [**\[설정 > 푸시 알림 설정\]**](/new-admin/settings/push.md)의 <img src="/files/vKPWkS30D2dPWI3B69LC" alt="" data-size="line"> 버튼을 클릭해 주세요.

(2) [**\[1-3. 비공개키 생성\]**](#id-1-3)에서 다운로드한 JSON 파일을 업로드하면 설정이 완료됩니다.

***

## **2. 앱 식별 정보 설정**

[**\[설정 > 모바일 앱\]**](/new-admin/settings/mobile-app.md)에서 **앱 식별 정보 및 사용 플랫폼 정보**를 설정해 주세요.

이 정보를 등록해야 방문자의 접속 환경(App/Web)을 정확히 구분할 수 있으며, 앱 사용자를 대상으로 푸시 알림 캠페인을 진행할 수 있습니다.

<figure><img src="/files/Z0g6mPyEgXROX3WdoAup" alt=""><figcaption></figcaption></figure>


---

# 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.groobee.ai/new-admin/push/firebase.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.
