# Firebase 비공개키 등록하기

Android 및 iOS 모바일 기기에 푸시 알림을 보내기 위해서는 Firebase 비공개키를 반드시 등록해야 합니다.

Firebase 비공개키를 이용하면 Android, iOS 앱을 각각 설정할 필요 없이 한 번에 연동할 수 있습니다.

이 페이지에서는 Firebase 비공개키를 발급받아 등록하는 과정을 설명합니다.

\ <br>

## **1. Firebase 프로젝트 만들기**

* 푸시 알림을 발송하기 위해 Android, iOS 앱 정보가 등록된 Firebase 프로젝트가 필요합니다. Firebase Console 화면으로 이동 후 프로젝트가 없는 경우, **프로젝트 추가**를 클릭 하고 지시에 따라 프로젝트를 설정하세요.
* 이미 Android, iOS 앱 정보가 등록된 Firebase 프로젝트가 있는 경우 3 단계로 건너뛰세요.

<figure><img src="https://files.helpdocs.io/p92xn84cjv/articles/3pek95zvoz/1611305561618/firebase.png" alt=""><figcaption></figcaption></figure>

***

## **2. Firebase Console에서 앱 추가**

* 프로젝트 생성 후 Android, iOS 앱 정보를 추가합니다. 앱 추가에 대한 자세한 내용은 아래 Firebase 도움말을 참고하세요.
  * [Firebase Android 앱 추가 도움말](https://firebase.google.com/docs/android/setup)
  * [Firebase iOS 앱 추가 도움말](https://firebase.google.com/docs/ios/setup)

<figure><img src="https://files.helpdocs.io/p92xn84cjv/articles/3pek95zvoz/1611305574528/.png" alt=""><figcaption></figcaption></figure>

***

## **3. Firebase Console 설정 > 서비스 계정 화면에서 비공개키 생성**

* 상단 톱니바퀴 선택 후 '프로젝트' 설정을 클릭합니다.

<figure><img src="https://files.helpdocs.io/p92xn84cjv/articles/3pek95zvoz/1611306145276/.png" alt=""><figcaption></figcaption></figure>

* '서비스 계정'을 클릭한 후 '새 비공개 키 생성' 버튼을 클릭하여 비공개키 파일을 다운로드 합니다. (JSON 형식)

<figure><img src="https://files.helpdocs.io/p92xn84cjv/articles/3pek95zvoz/1611306209725/jso.png" alt=""><figcaption></figcaption></figure>

***

## **4. SDK 설정 화면에서 Firebase 비공개키 등록**

* 그루비 어드민 > 설정 > SDK 화면으로 이동 후 업로드 아이콘을 클릭합니다.

<figure><img src="https://files.helpdocs.io/p92xn84cjv/articles/3pek95zvoz/1611538904668/.png" alt=""><figcaption></figcaption></figure>

* 파일 업로드 창에서 다운로드 받은 Firebase 비공개키를 업로드합니다.

<figure><img src="https://files.helpdocs.io/p92xn84cjv/articles/3pek95zvoz/1611624766909/010-sdk-01-firebase.png" 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/old-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.
