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
[Wheel Lab #2] Apple Service with Rails.
Search
HeChien Hsu
September 17, 2013
Technology
0
63
[Wheel Lab #2] Apple Service with Rails.
這是我在Wheel Lab #2的演講投影片,歡迎參考。
HeChien Hsu
September 17, 2013
Tweet
Share
More Decks by HeChien Hsu
See All by HeChien Hsu
Using Git hosting
hechien
0
40
[Kaohsiung Rails meetup] 國際化影片分享網站
hechien
0
160
[Sokoos][教育訓練] Git - 1
hechien
0
140
[數位教學] 用Bootstrap製作網頁
hechien
0
1.3k
DesignYou - 專題報告投影片
hechien
0
100
[作業] 創意美學
hechien
0
43
[教育訓練] Rails Form Basic
hechien
1
57
[教育訓練] Rails Validation Basic
hechien
1
68
Rails Layout Basic
hechien
2
100
Other Decks in Technology
See All in Technology
現代CSSフレームワークの内部実装とその仕組み
poteboy
7
3.6k
Terraformあれやこれ/terraform-this-and-that
emiki
8
1.4k
ワールドカフェI /チューターを改良する / World Café I and Improving the Tutors
ks91
PRO
0
120
アクセシビリティを考慮したUI/CSSフレームワーク・ライブラリ選定
yajihum
2
1k
よく聞くけど使ったことないソフトウェアNo.1 KafkaとSnowflake
foursue
4
360
ChatGPT for IT Service Management (IT Pro)
dahatake
7
1.6k
DMM.com アルファ室採用案内資料
hsugita
1
160
推しは推せるときに推せ! プロダクトにフィードバックしていこう
nakasho
0
320
20240418_Google ColabにLLMが搭載されたようなのでPython x データ分析の勉強方法を考えてみる
doradora09
0
140
【NW X Security JAWS#3】L3-4:AWS環境のIPv6移行に向けて知っておきたいこと
shotashiratori
0
330
アクセス制御にまつわる改善 / Improving access control
itkq
0
550
本当のAWS基礎
toru_kubota
0
520
Featured
See All Featured
For a Future-Friendly Web
brad_frost
172
9k
Optimising Largest Contentful Paint
csswizardry
8
2.4k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
241
1.2M
How to train your dragon (web standard)
notwaldorf
73
5.2k
How STYLIGHT went responsive
nonsquared
92
4.8k
The Cost Of JavaScript in 2023
addyosmani
16
3.9k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
274
13k
[RailsConf 2023] Rails as a piece of cake
palkan
23
4k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
125
32k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
25
2.3k
Adopting Sorbet at Scale
ufuk
68
8.6k
Designing with Data
zakiwarfel
96
4.8k
Transcript
Apple Services with Rails 徐赫謙
About.me • 徐赫謙 • Web Developer (Rails / C.I.) •
Work @ Sokoos • http://hechien.logdown.com
Apple Service?
None
半⼩小時做得出來才怪
+
+ 這才是主題
Apple Push Notification
流程簡述 iOS device Apple Rails 註冊 取得Device Token 把device token拿去註冊
回傳說個Hi之類的 把訊息「 三點半,起床尿尿了!」 & Device Token送出 三點半,起床尿尿了!
要有哪些東⻄西? • Device Token的接收點 (⾃自⼰己幹) • Background Job (delayed_job) •
Push Notification Gem (jpoz) • APNS憑證 (development & production)
範例
In-App Purchase
流程簡述 iOS device Apple Rails 取得商品列表 送出購買要求 回傳單據 傳送單據驗證 單據轉包Apple驗證
回傳驗證結果 回傳驗證結果
要有哪些東⻄西? • 商品列表管理 • 單據接收點 • 單據驗證功能 (itunes_receipt) • 不需要準備憑證,只是商品資訊要有正
確的product id
範例 http://weblog.plexobject.com/?p=1677
注意 • sandbox 要處理好 • 21007, 21008的問題就是sandbox / production
One more thing
None
駐步
享受
府城之美
可參考資料 • https://blog.serverdensity.com/how-to- build-an-apple-push-notification-provider- server-tutorial/
謝謝 http://sokoos.com