Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Push通知を届けるために
Search
futabooo
July 14, 2015
Programming
1
3.4k
Push通知を届けるために
futabooo
July 14, 2015
Tweet
Share
More Decks by futabooo
See All by futabooo
Android Jetpack Navigation Deep Links Tips
futaboooo
0
550
チームの学びを活かす全社での取り組み / company wide efforts to make use of team's learning
futaboooo
1
650
ペアプロ・モブプロを広めるのに役立ったControl Chartの使い方 / How to use Control Chart which helped spread Pair or Mob Programing
futaboooo
2
270
スクラムチームをやめて、20人でカンバン運用してきた半年間の軌跡 / Stop Scrum Start Kanban
futaboooo
19
18k
InvisionのAndroidアプリでみる4つのデザイン基本原則 / Four design basic principles seen in Invision's Android application
futaboooo
2
2.3k
Pairsの開発のすべて / all of Pairs development
futaboooo
1
2.5k
モブプログラミングという開発スタイル、あるいは生産性について / On development style called mob programming, or productivity
futaboooo
5
8.5k
Androidでスクレイピングした話 / Talk of scraping with Android
futaboooo
0
5.2k
新人スクラムマスターが開発者と兼任しながらやってきた事と成果/What the newcomer Scrum Master came while concurrently serving as a developer and the result
futaboooo
1
1.8k
Other Decks in Programming
See All in Programming
命名をリントする
chiroruxx
1
420
採用事例の少ないSvelteを選んだ理由と それを正解にするためにやっていること
oekazuma
2
1k
SymfonyCon Vienna 2025: Twig, still relevant in 2025?
fabpot
3
1.2k
StarlingMonkeyを触ってみた話 - 2024冬
syumai
3
270
Scalaから始めるOpenFeature入門 / Scalaわいわい勉強会 #4
arthur1
1
340
テスト自動化失敗から再挑戦しチームにオーナーシップを委譲した話/STAC2024 macho
ma_cho29
1
1.3k
これでLambdaが不要に?!Step FunctionsのJSONata対応について
iwatatomoya
2
3.7k
php-conference-japan-2024
tasuku43
0
320
tidymodelsによるtidyな生存時間解析 / Japan.R2024
dropout009
1
790
Zoneless Testing
rainerhahnekamp
0
120
ゆるやかにgolangci-lintのルールを強くする / Kyoto.go #56
utgwkk
2
400
rails stats で紐解く ANDPAD のイマを支える技術たち
andpad
1
290
Featured
See All Featured
Fashionably flexible responsive web design (full day workshop)
malarkey
405
66k
How to Ace a Technical Interview
jacobian
276
23k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
111
49k
What's in a price? How to price your products and services
michaelherold
243
12k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
169
50k
Making Projects Easy
brettharned
116
5.9k
Code Reviewing Like a Champion
maltzj
520
39k
The MySQL Ecosystem @ GitHub 2015
samlambert
250
12k
Designing on Purpose - Digital PM Summit 2013
jponch
116
7k
Large-scale JavaScript Application Architecture
addyosmani
510
110k
A Modern Web Designer's Workflow
chriscoyier
693
190k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
159
15k
Transcript
Push௨Λಧ͚ΔͨΊʹ #potatotips 19 @futabooo
About me futabooo (Takahiro futagawa) - Engineer @eureka - Android
Developer - ࠷ۙΓΛײ͍ͯ͡Δ͜ͱ - ΫϥυϑΝϯσΟϯάͰߪೖͨ͠ ೣࣖܕϔουϑΥϯͷ։ൃԆ 4݄ૹ → 10݄ૹ http://www.axentwear.jp/
About eureka
ࠓ͢͜ͱ
ࠓ͢͜ͱ - InstanceID - RegistrationID(iOSͰ͍͏σόΠετʔΫϯ) - τϥϒϧγϡʔςΟϯά
GCMʹ͍ͭͯ
GCMͷྲྀΕ https://developers.google.com/cloud-messaging/gcm - ࣄલʹRegistrationIDΛอଘ - αʔό͔ΒRegistrationIDΛͬͯ PushΛૹ৴ RegistrationID
GCMͷ࣮ʹ͍ͭͯ - ࣮ํ๏ެࣜυΩϡϝϯτࢀর https://developers.google.com/cloud-messaging/android/legacy-regid - ΞϓϦΞοϓσʔτͰRegistrationID͕ มߋ͞ΕΔͱ͜ΖΧόʔ - ͷ࠶ىಈͰมߋ͞ΕΔ߹͕͋Δ
αʔόʹมߋޙͷIDΛૹΒͳ͍ͱ ಧ͔ͳ͘ͳΔ
ͷ࠶ىಈʹରԠ <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> AndroidManifest.xml <receiver android:name=".BootReceiver"> <intent-filter> <action
android:name="android.intent.action.BOOT_COMPLETED" /> </intent-filter> </receiver>
ͷ࠶ىಈʹରԠ BootReceiver.java @Override public void onReceive(Context c, Intent i)
{ //RegistrationIDͷ࠶ొॲཧ }
τϥϒϧγϡʔςΟϯά
τϥϒϧγϡʔςΟϯά - GCMஅ https://support.google.com/googleplay/android-developer/answer/2663268
τϥϒϧγϡʔςΟϯά - GCMஅ εςʔλεʹΑͬͯMessage͕ਖ਼ ৗʹಧ͍͔ͨͲ͏͔֬ೝͰ͖Δ
͓·͚
͓·͚ - અిΞϓϦ - ͷઅిػೳ - wifiͷஅ - Serviceͷఀࢭ Push௨Λಧ͚ΔͨΊͷઓ͍ଓ͘
- DozeϞʔυ
Thank you :)