More Related Content Similar to Android gcm ex_askdog (20) More from ์ ์ธ ์ฃผ (20) Android gcm ex_askdog2. ๋ชฉ์ฐจ
I. GCM ๊ฐ๋
II. GCM ํ๊ฒฝ์ค์
III. GCM Android ๊ฐ๋ฐ (์ ์ก , ์์ )
์์ธ์ ๋งํฌ๊ตฌ ์์๋ ๋๋ฆฌ๊ฟ์คํ์ด ์ฐ๊ตฌ๊ฐ๋ฐํ์ 1111ํธ _ 070.7450.6572 _ dev@jellycoaster.com
3. GCM ๊ฐ๋
โ Goole Cloud Messaging
GCM์ด๋โฆ
๊ฐ๋ฐ์๊ฐ ์๋ฒ์์ ์์ ์ Android ์ ํ๋ฆฌ์ผ์ด์
์ผ๋ก
๋ฐ์ดํฐ๋ฅผ ์ ์กํ๊ฒ ํด์ฃผ๋ ๋ฌด๋ฃ ์๋น์ค์
๋๋ค.
์๋ฒ์์ ๊ฐ์ ธ์์ผํ ์๋ก์ด ๋ฐ์ดํฐ(์:์น๊ตฌ๊ฐ ์
๋ก๋ํ
์ํ)๊ฐ ์์์ Android์ ํ๋ฆฌ์ผ์ด์
์ ์๋ฆฌ๋ ์ ์
์ฉ๋์ ๋ฉ์์ง์ด๊ฑฐ๋, ์ต๋ 4KB์ ํ์ด๋ก๋ ๋ฐ์ดํฐ๋ฅผ
ํฌํจํ๋ ๋ฉ์์ง์ผ ์ ์์ต๋๋ค.
๋ฐ๋ผ์ ๋ฉ์ ์ ์ ๊ฐ์ ์ฑ์ ๋ฉ์์ง๋ฅผ ์ง์ ์ฌ์ฉํ ์
์์ต๋๋ค.
2013 Jellycoaster Inc. Dev.team
4. GCM โ ํ๊ฒฝ์ค์ (1)
GCM์ ์ฌ์ฉํ๊ธฐ ๋จผ์ ๊ตฌ๊ธ ํ๋ก์ ํธ๋ฅผ ์์ฑํด์ผ ํฉ๋๋ค.
์๋ ์ฃผ์๋ก ๊ฐ์ ๊ตฌ๊ธ ํ๋ก์ ํธ๋ฅผ ์์ฑํฉ๋๋ค.
๊ตฌ๊ธ ํ๋ก์ ํธ๋ฅผ ์์ฑํ๋ฉด ์ฃผ์ํค๋ฅผ ์๋ด์ผ ํฉ๋๋ค.
6795763733์ด ๋ฐ๋ก Sender ID ์
๋๋ค.
2013 Jellycoaster Inc. Dev.team
5. GCM โ ํ๊ฒฝ์ค์ (2)
๊ตฌ๊ธ ํ๋ก์ ํธ๋ฅผ ์์ฑํ์ผ๋ฉด GCM ์ ์ฌ์ฉํ๊ฒ ๋ค๊ณ ์ค์ ์ ํด์ผ ํฉ๋๋ค.
์๋์ ๊ฐ๊ฒ Google Cloud Messaging for Android๋ฅผ On ์ผ๋ก ์ค์ ํฉ๋๋ค.
2013 Jellycoaster Inc. Dev.team
6. GCM โ ํ๊ฒฝ์ค์ (3)
๋ค์์ผ๋ก Server ์ฉ API Key ๋ฅผ ์ป์ต๋๋ค.
Create ๋ฅผ ๋๋ฅด๋ฉด Server Key API ๊ฐ ๋ฐ๊ธ๋ฉ๋๋ค.
2013 Jellycoaster Inc. Dev.team
7. GCM โ ํ๊ฒฝ์ค์ (4)
์ด์ Eclipse ๋ก ๋์์ GCM Libray ๋ฅผ ๋ฑ๋ก์ ํด์ค์ผ ํฉ๋๋ค.
GCM Libray ๊ฐ ์ค์น๋์ด ์์ง ์์ผ๋ฉด ์๋์ ๊ฐ์ด Install์ ํด์ค์ผ ํฉ๋๋ค.
2013 Jellycoaster Inc. Dev.team
8. GCM โ ํ๊ฒฝ์ค์ (5)
gcm.jar ์ ํ
์คํธ์ ํ์ํ gcm-server.jar๋ฅผ java build path ์ ๋ฑ๋กํด์ค๋๋ค.
Path : android์ค์น ๊ฒฝ๋ก/extras/google/gcm/gcm-client/dist/gcm.jar
Path : android์ค์น ๊ฒฝ๋ก/extras/google/gcm/gcm-server/dist/gcm-server.jar
2013 Jellycoaster Inc. Dev.team
9. GCM โ ๊ฐ๋ฐ(1)
AndroidManifest.xml ์ ์๋์ ๊ฐ์ด GCM ์ ์์ ํ ๋ฆฌ์๋ฒ๋ฅผ ๋ฑ๋กํฉ๋๋ค.
2013 Jellycoaster Inc. Dev.team
10. GCM โ ๊ฐ๋ฐ(1)
AndroidManifest.xml ์ ์๋์ ๊ฐ์ด Permission ์ ์ถ๊ฐํด์ค๋๋ค.
2013 Jellycoaster Inc. Dev.team
11. GCM โ ๊ฐ๋ฐ(2)
Android App ์์ GCM ์ ๋ฑ๋กํ๋ ์์ ์
๋๋ค.
์ฒ์ ๊ตฌ๊ธํ๋ก์ ํธ ์์ฑํ์ ๋ ๊ธฐ์ตํ Sender ID ๊ฐ ๋ค์ด๊ฐ๋ ๋ถ๋ถ์
๋๋ค.
2013 Jellycoaster Inc. Dev.team
12. GCM โ ๊ฐ๋ฐ(3)
Android App ์์ GCM ์ ์์ ํ๋ ์์ ์
๋๋ค.
2013 Jellycoaster Inc. Dev.team
13. GCM โ ๊ฐ๋ฐ(4)
Android App ์์ GCM ์ ์ก์ ํ๋ ์์ ์
๋๋ค.
์๋ ์์ ๋ App์์ App์ผ๋ก GCM์ ๋ณด๋ด๋ ๊ณผ์ ์ด๋ฏ๋ก ์๋ฒ์์
๋ณด๋ผ์์๋ ํด๋น ์น์๋ฒ์ ๋ฐ๋ผ Api ๊ฐ ํ๋ฆด ์ ์๋ ๊ฑธ ์ผ๋ํด ๋์๊ธธ
๋ฐ๋๋๋ค.
2013 Jellycoaster Inc. Dev.team