SlideShare ist ein Scribd-Unternehmen logo
1 von 23
DO IT! GCM DEMO
ON ANDROID
최성식
Contents
■ What’s GCM?
■ Feature of GCM
■ How to set up a GCM demo on Android?
1. Make a project
2. Get a configuration file
3. Add the configuration file to your project
4. Set up Google Play Services
5. EditYour Application's Manifest
■ Do it! GCM demo
What’s GCM?
■ GoogleCloud Messaging
What’s GCM?
Feature of GCM
■ Free service
■ a GCM message can transfer up to 4kb of payload to the client app
1. Make a project
2. Get a configuration file
3. Add the configuration file to your project
4. Set up Google Play Services
5. EditYour Application's Manifest
6. Make a GCM demo app
How to set up a GCM demo on Android?
1. Make a project
Or Get the Project from google-services.git
https://github.com/googlesamples/google-services.git
How to set up a GCM demo on Android?
1. Make a project -2
 and set up
Google Play services
How to set up a GCM demo on Android?
1. Make a project -3
How to set up a GCM demo on Android?
2. Get a configuration file
– https://developers.google.com/cloud-messaging/android/start
How to set up a GCM demo on Android?
2. Get a configuration file -2
How to set up a GCM demo on Android?
2. Get a configuration file -3
How to set up a GCM demo on Android?
3. Add the configuration file to your project
How to set up a GCM demo on Android?
3. Add the configuration file to your project -2
How to set up a GCM demo on Android?
3. Add the configuration file to your project -3
How to set up a GCM demo on Android?
4. Set up Google Play Services (= 1. Make project -2)
How to set up a GCM demo on Android?
5. EditYour Application's Manifest
How to set up a GCM demo on Android?
https://developers.google.com/cloud-messaging/android/client#manifest
5. EditYour Application's
Manifest -2
How to set up a GCM demo on Android?
6. Make a GCM demo app
with google-services.git(1. Make a project-1)
or https://github.com/Tadoya/Tadoya-GCM-Demo.git
How to set up a GCM demo on Android?
Do it! GCM demo
Do it! GCM demo -2
Reference
■ Google Could Messaging
https://developers.google.com/cloud-messaging/
■ Saltfactory blog
http://blog.saltfactory.net/android/implement-push-service-via-gcm.html
GCM Demo Setup Android

Weitere ähnliche Inhalte

Was ist angesagt?

Huawei Appgallery & hms
Huawei Appgallery & hmsHuawei Appgallery & hms
Huawei Appgallery & hmsSofien AZOUZI
 
WSO2 Screencast - How to Easily Build a Git-Based CI/CD Pipeline for your API...
WSO2 Screencast - How to Easily Build a Git-Based CI/CD Pipeline for your API...WSO2 Screencast - How to Easily Build a Git-Based CI/CD Pipeline for your API...
WSO2 Screencast - How to Easily Build a Git-Based CI/CD Pipeline for your API...Wasura Wattearachchi
 
Add eclipse project with git lab
Add eclipse project with git labAdd eclipse project with git lab
Add eclipse project with git labSokngim Sa
 
Laravel & google cloud platform do mix​!
Laravel & google cloud platform do mix​!Laravel & google cloud platform do mix​!
Laravel & google cloud platform do mix​!Abdelrahman Omran
 
Git in 10 minutes (WordCamp Europe 2017)
Git in 10 minutes (WordCamp Europe 2017)Git in 10 minutes (WordCamp Europe 2017)
Git in 10 minutes (WordCamp Europe 2017)Borek Bernard
 
How to improve gradle build speed
How to improve gradle build speedHow to improve gradle build speed
How to improve gradle build speedFate Chang
 
Grails Internals Ggug Dec 2009
Grails Internals Ggug Dec 2009Grails Internals Ggug Dec 2009
Grails Internals Ggug Dec 2009Skills Matter
 
Conversational Development [Agile Portugal]
Conversational Development [Agile Portugal]Conversational Development [Agile Portugal]
Conversational Development [Agile Portugal]🌍 Job van der Voort
 
Git in 10 minutes (WordCamp London 2018)
Git in 10 minutes (WordCamp London 2018)Git in 10 minutes (WordCamp London 2018)
Git in 10 minutes (WordCamp London 2018)Borek Bernard
 
JHipster conf : craftsmanship & tdd
JHipster conf : craftsmanship & tddJHipster conf : craftsmanship & tdd
JHipster conf : craftsmanship & tddHippolyte Durix
 
How I built web services in CakePHP
How I built web services in CakePHPHow I built web services in CakePHP
How I built web services in CakePHPDavid Yell
 
Grunt js and WordPress
Grunt js and WordPressGrunt js and WordPress
Grunt js and WordPressWP Australia
 
GitLab Frontend and VueJS at GitLab
GitLab Frontend and VueJS at GitLabGitLab Frontend and VueJS at GitLab
GitLab Frontend and VueJS at GitLabFatih Acet
 
Learned lessons in a real world project
Learned lessons in a real world projectLearned lessons in a real world project
Learned lessons in a real world projectLuis Rovirosa
 
Git Going w/ Git
Git Going w/ GitGit Going w/ Git
Git Going w/ GitheyMP
 

Was ist angesagt? (20)

Gdg makurdi
Gdg makurdiGdg makurdi
Gdg makurdi
 
Huawei Appgallery & hms
Huawei Appgallery & hmsHuawei Appgallery & hms
Huawei Appgallery & hms
 
WSO2 Screencast - How to Easily Build a Git-Based CI/CD Pipeline for your API...
WSO2 Screencast - How to Easily Build a Git-Based CI/CD Pipeline for your API...WSO2 Screencast - How to Easily Build a Git-Based CI/CD Pipeline for your API...
WSO2 Screencast - How to Easily Build a Git-Based CI/CD Pipeline for your API...
 
Add eclipse project with git lab
Add eclipse project with git labAdd eclipse project with git lab
Add eclipse project with git lab
 
Laravel & google cloud platform do mix​!
Laravel & google cloud platform do mix​!Laravel & google cloud platform do mix​!
Laravel & google cloud platform do mix​!
 
Git in 10 minutes (WordCamp Europe 2017)
Git in 10 minutes (WordCamp Europe 2017)Git in 10 minutes (WordCamp Europe 2017)
Git in 10 minutes (WordCamp Europe 2017)
 
How to improve gradle build speed
How to improve gradle build speedHow to improve gradle build speed
How to improve gradle build speed
 
Grails Internals Ggug Dec 2009
Grails Internals Ggug Dec 2009Grails Internals Ggug Dec 2009
Grails Internals Ggug Dec 2009
 
Conversational Development [Agile Portugal]
Conversational Development [Agile Portugal]Conversational Development [Agile Portugal]
Conversational Development [Agile Portugal]
 
Git in 10 minutes (WordCamp London 2018)
Git in 10 minutes (WordCamp London 2018)Git in 10 minutes (WordCamp London 2018)
Git in 10 minutes (WordCamp London 2018)
 
Design for gutenberg
Design for gutenbergDesign for gutenberg
Design for gutenberg
 
JHipster conf : craftsmanship & tdd
JHipster conf : craftsmanship & tddJHipster conf : craftsmanship & tdd
JHipster conf : craftsmanship & tdd
 
How I built web services in CakePHP
How I built web services in CakePHPHow I built web services in CakePHP
How I built web services in CakePHP
 
Grunt js and WordPress
Grunt js and WordPressGrunt js and WordPress
Grunt js and WordPress
 
GitOps with Gitkube
GitOps with GitkubeGitOps with Gitkube
GitOps with Gitkube
 
GitLab Frontend and VueJS at GitLab
GitLab Frontend and VueJS at GitLabGitLab Frontend and VueJS at GitLab
GitLab Frontend and VueJS at GitLab
 
Git & GitLab
Git & GitLabGit & GitLab
Git & GitLab
 
Learned lessons in a real world project
Learned lessons in a real world projectLearned lessons in a real world project
Learned lessons in a real world project
 
Git workshop
Git workshopGit workshop
Git workshop
 
Git Going w/ Git
Git Going w/ GitGit Going w/ Git
Git Going w/ Git
 

Andere mochten auch

000001560595_1425351208416_0.5687465614331808
000001560595_1425351208416_0.5687465614331808000001560595_1425351208416_0.5687465614331808
000001560595_1425351208416_0.5687465614331808GeniNetworks
 
리눅스를 이용한 Nas만들기
리눅스를 이용한 Nas만들기리눅스를 이용한 Nas만들기
리눅스를 이용한 Nas만들기SeongSik Choi
 
Firebase Database 둘러보기
Firebase Database 둘러보기Firebase Database 둘러보기
Firebase Database 둘러보기SeongSik Choi
 
000001871277_1425351249536_0.35266743797617006
000001871277_1425351249536_0.35266743797617006000001871277_1425351249536_0.35266743797617006
000001871277_1425351249536_0.35266743797617006GeniNetworks
 

Andere mochten auch (11)

000001560595_1425351208416_0.5687465614331808
000001560595_1425351208416_0.5687465614331808000001560595_1425351208416_0.5687465614331808
000001560595_1425351208416_0.5687465614331808
 
Din9talk(beta0.2.0)
Din9talk(beta0.2.0)Din9talk(beta0.2.0)
Din9talk(beta0.2.0)
 
Din9talk(beta0.3.1)
Din9talk(beta0.3.1)Din9talk(beta0.3.1)
Din9talk(beta0.3.1)
 
리눅스를 이용한 Nas만들기
리눅스를 이용한 Nas만들기리눅스를 이용한 Nas만들기
리눅스를 이용한 Nas만들기
 
FCM알아보기
FCM알아보기FCM알아보기
FCM알아보기
 
Linebot
LinebotLinebot
Linebot
 
RokSeoul
RokSeoulRokSeoul
RokSeoul
 
Firebase Database 둘러보기
Firebase Database 둘러보기Firebase Database 둘러보기
Firebase Database 둘러보기
 
000001871277_1425351249536_0.35266743797617006
000001871277_1425351249536_0.35266743797617006000001871277_1425351249536_0.35266743797617006
000001871277_1425351249536_0.35266743797617006
 
HTTPS, 원격제어
HTTPS, 원격제어HTTPS, 원격제어
HTTPS, 원격제어
 
AR tool - Vuforia
AR tool - VuforiaAR tool - Vuforia
AR tool - Vuforia
 

Ähnlich wie GCM Demo Setup Android

Gcm presentation
Gcm presentationGcm presentation
Gcm presentationNiraj Singh
 
Raspberry pi and Google Cloud
Raspberry pi and Google CloudRaspberry pi and Google Cloud
Raspberry pi and Google CloudFaisal Mehmood
 
Urban Airship and Android Integration for Push Notification and In-App Notifi...
Urban Airship and Android Integration for Push Notification and In-App Notifi...Urban Airship and Android Integration for Push Notification and In-App Notifi...
Urban Airship and Android Integration for Push Notification and In-App Notifi...Zeeshan Rahman
 
Urban Airship & Android Application Integration Document
Urban Airship & Android Application Integration DocumentUrban Airship & Android Application Integration Document
Urban Airship & Android Application Integration Documentmobi fly
 
#MBLTdev: Разработка backend для мобильного приложения с использованием Googl...
#MBLTdev: Разработка backend для мобильного приложения с использованием Googl...#MBLTdev: Разработка backend для мобильного приложения с использованием Googl...
#MBLTdev: Разработка backend для мобильного приложения с использованием Googl...e-Legion
 
Get Well Prepared for Google Professional Cloud Developer (GCP-PCD) Certifica...
Get Well Prepared for Google Professional Cloud Developer (GCP-PCD) Certifica...Get Well Prepared for Google Professional Cloud Developer (GCP-PCD) Certifica...
Get Well Prepared for Google Professional Cloud Developer (GCP-PCD) Certifica...Amaaira Johns
 
Extending An Android App Using the IBM Push for Bluemix Cloud Service
Extending An Android App Using the IBM Push for Bluemix Cloud ServiceExtending An Android App Using the IBM Push for Bluemix Cloud Service
Extending An Android App Using the IBM Push for Bluemix Cloud ServiceIBM developerWorks
 
4_pillars_for_app_development_in_GCP.pdf
4_pillars_for_app_development_in_GCP.pdf4_pillars_for_app_development_in_GCP.pdf
4_pillars_for_app_development_in_GCP.pdfLuillyfe Blanco
 
Mobile backends with Google Cloud Platform (MBLTDev'14)
Mobile backends with Google Cloud Platform (MBLTDev'14)Mobile backends with Google Cloud Platform (MBLTDev'14)
Mobile backends with Google Cloud Platform (MBLTDev'14)Natalia Efimtseva
 
Week #1 Training ACEM.pptx
Week #1 Training ACEM.pptxWeek #1 Training ACEM.pptx
Week #1 Training ACEM.pptxShivamJha793068
 
Android Training in Chandigarh | Industrial Training in Android Apps Development
Android Training in Chandigarh | Industrial Training in Android Apps DevelopmentAndroid Training in Chandigarh | Industrial Training in Android Apps Development
Android Training in Chandigarh | Industrial Training in Android Apps DevelopmentBig Boxx Animation Academy
 
GCM Android
GCM AndroidGCM Android
GCM Androidaswapnal
 
GOOGLE CLOUD MESSAGING PPT 2017
GOOGLE CLOUD MESSAGING PPT 2017GOOGLE CLOUD MESSAGING PPT 2017
GOOGLE CLOUD MESSAGING PPT 2017ketan Bordekar
 
Accessing Google Cloud APIs
Accessing Google Cloud APIsAccessing Google Cloud APIs
Accessing Google Cloud APIswesley chun
 
GCPUG.TW - GCP學習資源分享
GCPUG.TW - GCP學習資源分享GCPUG.TW - GCP學習資源分享
GCPUG.TW - GCP學習資源分享Simon Su
 
GCP App Engine with Spring boot Deployment.pptx
GCP App Engine with Spring boot Deployment.pptxGCP App Engine with Spring boot Deployment.pptx
GCP App Engine with Spring boot Deployment.pptxKnoldus Inc.
 
Gitlab ci e kubernetes, build test and deploy your projects like a pro
Gitlab ci e kubernetes, build test and deploy your projects like a proGitlab ci e kubernetes, build test and deploy your projects like a pro
Gitlab ci e kubernetes, build test and deploy your projects like a prosparkfabrik
 

Ähnlich wie GCM Demo Setup Android (20)

Gcm presentation
Gcm presentationGcm presentation
Gcm presentation
 
Raspberry pi and Google Cloud
Raspberry pi and Google CloudRaspberry pi and Google Cloud
Raspberry pi and Google Cloud
 
Urban Airship and Android Integration for Push Notification and In-App Notifi...
Urban Airship and Android Integration for Push Notification and In-App Notifi...Urban Airship and Android Integration for Push Notification and In-App Notifi...
Urban Airship and Android Integration for Push Notification and In-App Notifi...
 
Urban Airship & Android Application Integration Document
Urban Airship & Android Application Integration DocumentUrban Airship & Android Application Integration Document
Urban Airship & Android Application Integration Document
 
Deploying to AppEngine
Deploying to AppEngineDeploying to AppEngine
Deploying to AppEngine
 
#MBLTdev: Разработка backend для мобильного приложения с использованием Googl...
#MBLTdev: Разработка backend для мобильного приложения с использованием Googl...#MBLTdev: Разработка backend для мобильного приложения с использованием Googl...
#MBLTdev: Разработка backend для мобильного приложения с использованием Googl...
 
Get Well Prepared for Google Professional Cloud Developer (GCP-PCD) Certifica...
Get Well Prepared for Google Professional Cloud Developer (GCP-PCD) Certifica...Get Well Prepared for Google Professional Cloud Developer (GCP-PCD) Certifica...
Get Well Prepared for Google Professional Cloud Developer (GCP-PCD) Certifica...
 
Extending An Android App Using the IBM Push for Bluemix Cloud Service
Extending An Android App Using the IBM Push for Bluemix Cloud ServiceExtending An Android App Using the IBM Push for Bluemix Cloud Service
Extending An Android App Using the IBM Push for Bluemix Cloud Service
 
4_pillars_for_app_development_in_GCP.pdf
4_pillars_for_app_development_in_GCP.pdf4_pillars_for_app_development_in_GCP.pdf
4_pillars_for_app_development_in_GCP.pdf
 
GCM for Android
GCM for AndroidGCM for Android
GCM for Android
 
Mobile backends with Google Cloud Platform (MBLTDev'14)
Mobile backends with Google Cloud Platform (MBLTDev'14)Mobile backends with Google Cloud Platform (MBLTDev'14)
Mobile backends with Google Cloud Platform (MBLTDev'14)
 
Week #1 Training ACEM.pptx
Week #1 Training ACEM.pptxWeek #1 Training ACEM.pptx
Week #1 Training ACEM.pptx
 
Android Training in Chandigarh | Industrial Training in Android Apps Development
Android Training in Chandigarh | Industrial Training in Android Apps DevelopmentAndroid Training in Chandigarh | Industrial Training in Android Apps Development
Android Training in Chandigarh | Industrial Training in Android Apps Development
 
GCM Android
GCM AndroidGCM Android
GCM Android
 
GOOGLE CLOUD MESSAGING PPT 2017
GOOGLE CLOUD MESSAGING PPT 2017GOOGLE CLOUD MESSAGING PPT 2017
GOOGLE CLOUD MESSAGING PPT 2017
 
Week #1 Training.pptx
Week #1 Training.pptxWeek #1 Training.pptx
Week #1 Training.pptx
 
Accessing Google Cloud APIs
Accessing Google Cloud APIsAccessing Google Cloud APIs
Accessing Google Cloud APIs
 
GCPUG.TW - GCP學習資源分享
GCPUG.TW - GCP學習資源分享GCPUG.TW - GCP學習資源分享
GCPUG.TW - GCP學習資源分享
 
GCP App Engine with Spring boot Deployment.pptx
GCP App Engine with Spring boot Deployment.pptxGCP App Engine with Spring boot Deployment.pptx
GCP App Engine with Spring boot Deployment.pptx
 
Gitlab ci e kubernetes, build test and deploy your projects like a pro
Gitlab ci e kubernetes, build test and deploy your projects like a proGitlab ci e kubernetes, build test and deploy your projects like a pro
Gitlab ci e kubernetes, build test and deploy your projects like a pro
 

GCM Demo Setup Android

  • 1. DO IT! GCM DEMO ON ANDROID 최성식
  • 2. Contents ■ What’s GCM? ■ Feature of GCM ■ How to set up a GCM demo on Android? 1. Make a project 2. Get a configuration file 3. Add the configuration file to your project 4. Set up Google Play Services 5. EditYour Application's Manifest ■ Do it! GCM demo
  • 5. Feature of GCM ■ Free service ■ a GCM message can transfer up to 4kb of payload to the client app
  • 6. 1. Make a project 2. Get a configuration file 3. Add the configuration file to your project 4. Set up Google Play Services 5. EditYour Application's Manifest 6. Make a GCM demo app How to set up a GCM demo on Android?
  • 7. 1. Make a project Or Get the Project from google-services.git https://github.com/googlesamples/google-services.git How to set up a GCM demo on Android?
  • 8. 1. Make a project -2  and set up Google Play services How to set up a GCM demo on Android?
  • 9. 1. Make a project -3 How to set up a GCM demo on Android?
  • 10. 2. Get a configuration file – https://developers.google.com/cloud-messaging/android/start How to set up a GCM demo on Android?
  • 11. 2. Get a configuration file -2 How to set up a GCM demo on Android?
  • 12. 2. Get a configuration file -3 How to set up a GCM demo on Android?
  • 13. 3. Add the configuration file to your project How to set up a GCM demo on Android?
  • 14. 3. Add the configuration file to your project -2 How to set up a GCM demo on Android?
  • 15. 3. Add the configuration file to your project -3 How to set up a GCM demo on Android?
  • 16. 4. Set up Google Play Services (= 1. Make project -2) How to set up a GCM demo on Android?
  • 17. 5. EditYour Application's Manifest How to set up a GCM demo on Android? https://developers.google.com/cloud-messaging/android/client#manifest
  • 18. 5. EditYour Application's Manifest -2 How to set up a GCM demo on Android?
  • 19. 6. Make a GCM demo app with google-services.git(1. Make a project-1) or https://github.com/Tadoya/Tadoya-GCM-Demo.git How to set up a GCM demo on Android?
  • 20. Do it! GCM demo
  • 21. Do it! GCM demo -2
  • 22. Reference ■ Google Could Messaging https://developers.google.com/cloud-messaging/ ■ Saltfactory blog http://blog.saltfactory.net/android/implement-push-service-via-gcm.html

Hinweis der Redaktion

  1. Lifecycle Flow Register to enable GCM. An instance of a client app registers to receive messages. For more discussion, see Registering Client Apps. Send and receive downstream messages. Send a message. The app server sends messages to the client app: 1. The app server sends a message to GCM connection servers. 2. The GCM connection server enqueues and stores the message if the device is offline. 3. When the device is online, the GCM connection server sends the message to the device. 4. On the device, the client app receives the message according to the platform-specific implementation. See your platform-specific documentation for details. Receive a message. A client app receives a message from a GCM connection server. See your platform-specific documentation for details on how a client app in that environment processes the messages it receives. Send and receive upstream messages. This feature is only available if you're using the XMPP connection server. Send a message. A client app sends messages to the app server: 1. On the device, the client app sends messages to the XMPP connection server. See your platform-specific documentation for details on how a client app can send a message via XMPP. 2. The XMPP connection server enqueues and stores the message if the server is disconnected. 3. When the app server is re-connected, the XMPP connection server sends the message to the app server. Receive a message. An app server receives a message from the XMPP connection server and then does the following: 1. Parses the message header to verify client app sender information. 2. Sends "ack" to the XMPP connection server to acknowledge receiving the message. 3. Optionally parses the message payload, as defined by the client app.