# FCM 인증서 설정

가장 먼저 FCM (Firebase Cloud Message)서비스를 연결하기 위한 설정이 필요합니다. 이 과정에서는 앱 자체의 등록 등은 다루지 않습니다. 앱 등록 자체가 궁금하시다면 안드로이드 개발자 사이트의 아래 URL을 방문해주세요. [***https://developer.android.com/***](https://developer.android.com/)

## Firebase에 프로젝트 생성

1. Firebase 콘솔 접속 : <https://console.firebase.google.com/>
2. 프로젝트 생성 : 아래 그림과 같은 화면에서 "Create a project"를 선택합니다.

   <figure><img src="/files/LlCB2zBkBST421kCBThr" alt=""><figcaption></figcaption></figure>
3. 화면의 안내에 따라 프로젝트 이름(project name)을 입력합니다.

   <figure><img src="/files/2yQE9300DG1HnXgrSQeP" alt=""><figcaption></figcaption></figure>
4. 구글 애널리틱스를 사용할지 선택 후 "Continue"를 선택합니다.

   <figure><img src="/files/4bT2Hy0iHOjyfJvrnBIW" alt=""><figcaption></figcaption></figure>
5. 축하합니다 👏  Firebase 프로젝트 생성이 완료되었습니다. "Continue"를 선택하여 프로젝트 대시보드 창으로 이동합니다.

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

## 프로젝트에 앱 추가

1. 새로 생성된 Firebase 프로젝트의 오버뷰 창입니다. 여기에서 "설정 > Project settings" 메뉴를 선택합니다.

   <figure><img src="/files/irFrFgoKsJ28v4ayyyrv" alt=""><figcaption></figcaption></figure>
2. "Project settings"화면에는 여러개의 탭이 있습니다. 이 중 "General"탭의 하단에 앱을 추가할 수 있는 영역에서 "Android" 아이콘을 클릭하여 "앱"을 추가 합니다.

   <figure><img src="/files/e0vE0qqyIqqOxTsF6Aic" alt=""><figcaption></figcaption></figure>
3. 안드로이드 앱을 추가하는 화면입니다. 앱의 패키지 정보와 별명을 입력해주세요.

   <figure><img src="/files/6asuIfv5e0f6UKepLXXC" alt=""><figcaption></figcaption></figure>
4. 안드로이드 스튜디오에 적용할 파이어베이스 연결 설정 파일("google-services.json")을 다운로드받아, 아래 이미지에 보여지는 예시와 같이 안드로이드 스튜디오의 "/app"모듈 폴더 아래에 위치시킵니다.

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

## 다음 단계를 위한 "Project ID"와 "Firebase Admin SDK private key" 다운로드

1. 모든 설정이 완료되었으면 "Project settings"화면의 "General"탭에서 Wisetracker "2.0대시보드 설정"에서 이용할 "Project ID"정보를 확인 할 수 있습니다.

   <figure><img src="/files/lbf85vctieIe2WoGNBR8" alt=""><figcaption></figcaption></figure>
2. "Project settings"의 "Service accounts"탭에서 "Firebase Admin SDK"용 "private key"를 생성할 수 있습니다. "private key"는 프로젝트의 Firebase 서비스에 접속권한을 부여하는 것이기 때문에 외부에 유출되지 않도록 관리되어야 합니다.

   **생성된 "private key"파일을 다운로드 받아 잘 보관해두세요.**

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

<div align="center"><img src="/files/onI5EfXfLpWDuD3bnRjM" alt=""></div>

## 축하합니다 🎉

이제 메시지 기능을 이용하기 위한 첫 번째 단계를 끝내셨어요.

다음 단계에서 Wisetracker ["대시보드 설정"](/v2-developer/push/undefined/android/dashboardsetting.md)을 진행하도록 합니다.


---

# 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://document.wisetracker.co.kr/v2-developer/push/undefined/android/fcm_setting.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.
