Android 앱 개발에서 Google Cloud Messaging 및 애널리틱스를 설정하는 방법과 단계에 대한 비망록
![Androidアプリ開発における Google Cloud Messaging や Analytics の設定方法や手順についての備忘録.png](https://s1.md5.ltd/image/9442b5c79b90ea6f0f93cfc0f884baef.png)
본 기사의 전단에 대해서는 이쪽
iOS 엔지니어 안드로이드 앱 개발 분투기 - Qiita
소개
이 기사는 Android 앱 개발에서 Google Cloud Messaging 및 Analytics API를 사용하기 위해 API를 설정하는 방법과 단계를 비망록적으로 요약합니다.
※ Google I/O 2016 에서 Firebase 가 발표된 것에 의해 그 쪽으로 어느쪽으로 이행하게 될까 생각합니다의 보시는 분은 주의해 주세요.
- Firebase를 확장하여 통합 앱 플랫폼으로 등장
등장하는 용어에 대해
Google Developers Console
API 관리 콘솔
htps : // 이런. 로 ゔぉぺぺrs. 오, ぇ. 코m/
Add Google Services
Google Developers Console
API 관리 콘솔
htps : // 이런. 로 ゔぉぺぺrs. 오, ぇ. 코m/
Add Google Services
패키지 이름
Add Google Services 에서 프롭젝트 작성시에 지정한다
android.defaultConfig.applicationId
와 일치해야 한다 서버 API 키
Add Google Services 에서
Cloud Messaging
를 활성화하여 자동 생성됨Android API 키
Add Google Services 에서
Cloud Messaging
를 활성화하여 자동 생성됨google-service.json
Add Google Services 에서 프로젝트를 만들면 생성/다운로드 할 수 있습니다
api_key
또는 package_name
와 같은 API를 사용하기위한 프로젝트 정보가 json 형식으로 나열되어 있습니다 절차
1. API 관리할 Google 계정으로 로그인
2. Add Google Services 방문
3. 앱 만들기
app/build.gradle
의 android.defaultConfig.applicationId
와 일치해야 한다![スクリーンショット 2016-10-09 17.07.19.png](https://s1.md5.ltd/image/b409f511c37f359a3eadc7b95574c849.png)
4. Analytics 사용
![スクリーンショット 2016-10-09 17.11.46.png](https://s1.md5.ltd/image/e6adba24941a0a7a572fa28916ed42e4.png)
5. Cloud Messaging 사용
Server API Key
, Sender ID
가 생성된다 Server API Key
는 서버측에 설정한다 7. Generate configuration files -> Download google-services.json을 클릭합니다.
![スクリーンショット 2016-10-09 17.19.01.png](https://s1.md5.ltd/image/772af7cbbd724c38070a5e3557b54e90.png)
8. Google Developers Console에서 프로젝트 생성 및 API 키가 생성되었는지 확인
![スクリーンショット 2016-10-09 17.39.38.png](https://s1.md5.ltd/image/32fff4cf012123bd6d79c51e66646c0e.png)
9. google-services.json 을 프로젝트의 app/src/{variant}/ 아래에 D&D
![スクリーンショット 2016-10-09 17.28.52.png](https://s1.md5.ltd/image/cbaf15babee2827d4e4247b55f60f382.png)
Reference
이 문제에 관하여(Android 앱 개발에서 Google Cloud Messaging 및 애널리틱스를 설정하는 방법과 단계에 대한 비망록), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/RyoAbe/items/534ade82e303f75ef7e4텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)