본문 바로가기
기타 활동/영어공부

Google Cloud Messaging - Getting Started

by ★용호★ 2014. 12. 31.

오역 주의

원문 : http://developer.android.com/google/gcm/gs.html#access-key

Getting Started

시작하기


 

This document tells you how to get started setting up a Google Cloud Messaging (GCM) implementation.

이 문서는 Google Cloud Messaging(GCM) 설정을 어떻게 시작하는지에 대해 얘기한다.


 

Before you begin, make sure to set up the Google Play Services SDK. You need this SDK to use the GCM APIs.

시작하기 전에 Google Play Services SDK를 설정해야 한다. GCM API들을 사용하려면 이 SDK가 필요하다.


 

Creating a Google API project

Google API 프로젝트 생성하기


 

To create a Google API project:

Google API 프로젝트를 생성하려면:

  1. Open the Google Developers Console.

    Google Developers Console을 연다.

  1. If you haven't created an API project yet, click Create Project.

    API 프로젝트를 아직 생성하지 않았다면 Create Project를 클릭해라.

  1. Supply a project name and click Create.

    project 이름을 넣고 Create를 클릭한다.

  1. Once the project has been created, a page appears that displays your project ID and project number. For example, Project Number: 670330094152.

    1. 프로젝트가 생성되면, 페이지에 project ID와 project Number가 출력된다. 예를 들면 Project Number : 670330094152.

  2. Copy down your project number. You will use it later on as the GCM sender ID.

    1. project number를 복사한다. 나중에 GCM sender ID로 사용하게 될 것이다.


 

Enabling the GCM Service

GCM 서비스 활성화하기


 

To enable the GCM service:

GCM 서비스를 활성화하려면:

  1. In the sidebar on the left, select APIs & auth.

    1. 왼쪽 사이드바에서 APIs & auth 를 선택한다.

  2. In the displayed list of APIs, turn the Google Cloud Messaging for Android toggle to ON.

    1. 표시된 API들의 목록에서 Google Cloud Messaging for Android toggle을 ON 시킨다.


 

Obtaining an API Key

API 키 획득하기


 

To obtain an API key:

API 키를 획득하려면:

  1. In the sidebar on the left, select APIs & auth > Credentials.

    1. 왼쪽 사이드바에서 APIs & auth > Credentials을 선택한다.

  2. Under Public API access, click Create new key.

    1. Public API access 아래 Create new key를 클릭한다.

  3. In the Create a new key dialog, click Server key.

    1. Create a new key 대화창에서 Server Key를 클릭한다.

  4. In the resulting configuration dialog, supply your server's IP address. For testing purposes, you can use 0.0.0.0/0.

    1. configuration 대화창에서 server의 IP address를 넣는다. 테스트를 위해  0.0.0.0/0을 사용할 수 있다.

  5. Click Create.

    1. Create를 클릭한다.

  6. In the refreshed page, copy the API key. You will need the API key later on to perform authentication in your application server.

    1. 새로 고침 한 페이지에서 API key를 복사한다. 나중에 application server에서 인증을 수행하기 위한 API 키로 사용하게 될 것이다.

  7. Note: If you need to rotate the key, click Regenerate key. A new key will be created. If you think the key has been compromised and you want to delete it immediately, click Delete.

    1. Note: 키 변경이 필요한 경우에 Regenerate key를 클릭한다. 새로운 키가 생성될 것이다. 만약 그 키가 노출 됐다고 생각하고 바로 삭제하길 원할 경우 Delete를 클릭한다.


 

Next Steps

다음 단계들


 

Once you've finished the tasks listed above, you're ready to start implementing GCM. Here is an overview of the basic steps:

위의 작업 리스트들을 완료했다면 GCM 구현을 시작하기 위한 준비가 된 것이다. 기본 단계의 개요는 다음과 같다.

  1. Decide which Google-provided GCM connection server you want to use— HTTP or XMPP (CCS). GCM connection servers take messages from a 3rd-party application server (written by you) and send them to a GCM-enabled Android application (the "client app," also written by you) running on a device.

Google에서 제공하는 GCM connection server를 당신이 사용하길 원하는 것으로 결정 - HTTP 또는 XMPP(CCS). GCM connection server들은 타사의 application server(당신이 작성한)로부터 메세지를 받을 수 있고 기기에 작동 중인 GCM이 활성화된 안드로이드 application(client app 또는 당신이 작성한)에 전송할 수 있다.

  1. Implement an application server (the "3rd-party application server") to interact with your chosen GCM connection server. The app server sends data to a GCM-enabled Android client application via the GCM connection server. For more information about implementing the server side, see Implementing GCM Server.

당신이 선택한 GCM connection server와의 상호작용을 위해 application server(타사의 application server)를 구현한다. 그 앱 서버는 GCM connection server를 통해 GCM이 활성화된 안드로이드 클라이언트 어플리케이션에 데이터를 전송한다. server side 구현에 대한 더 많은 정보를 얻으려면 Implementing GCM Server를 참고해라.

  1. Write your client app. This is the GCM-enabled Android application that runs on a device. See Implementing GCM Client for more information.

클라이언트 앱을 구현한다. 이는 기기에 동작하는 GCM이 활성화된 어플리케이션이어야 한다. 더 많은 정보를 보려면 Implementing GCM Client를 참고해라.

댓글