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
74
[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
44
[Kaohsiung Rails meetup] 國際化影片分享網站
hechien
0
160
[Sokoos][教育訓練] Git - 1
hechien
0
150
[數位教學] 用Bootstrap製作網頁
hechien
0
1.3k
DesignYou - 專題報告投影片
hechien
0
110
[作業] 創意美學
hechien
0
55
[教育訓練] Rails Form Basic
hechien
1
69
[教育訓練] Rails Validation Basic
hechien
1
79
Rails Layout Basic
hechien
2
120
Other Decks in Technology
See All in Technology
Node-RED × MCP 勉強会 vol.1
1ftseabass
PRO
0
180
Model Mondays S2E03: SLMs & Reasoning
nitya
0
240
ネットワーク保護はどう変わるのか?re:Inforce 2025最新アップデート解説
tokushun
0
150
マーケットプレイス版Oracle WebCenter Content For OCI
oracle4engineer
PRO
3
940
OPENLOGI Company Profile
hr01
0
67k
ハッカソン by 生成AIハッカソンvol.05
1ftseabass
PRO
0
140
asken AI勉強会(Android)
tadashi_sato
0
140
Oracle Cloud Infrastructure:2025年6月度サービス・アップデート
oracle4engineer
PRO
2
310
開発生産性を組織全体の「生産性」へ! 部門間連携の壁を越える実践的ステップ
sudo5in5k
0
380
CursorによるPMO業務の代替 / Automating PMO Tasks with Cursor
motoyoshi_kakaku
2
790
LangSmith×Webhook連携で実現するプロンプトドリブンCI/CD
sergicalsix
1
150
Snowflake Summit 2025全体振り返り / Snowflake Summit 2025 Overall Review
mtpooh
2
440
Featured
See All Featured
Automating Front-end Workflow
addyosmani
1370
200k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
53k
Balancing Empowerment & Direction
lara
1
390
Code Reviewing Like a Champion
maltzj
524
40k
How GitHub (no longer) Works
holman
314
140k
Music & Morning Musume
bryan
46
6.6k
GraphQLとの向き合い方2022年版
quramy
49
14k
Intergalactic Javascript Robots from Outer Space
tanoku
271
27k
Scaling GitHub
holman
459
140k
KATA
mclloyd
30
14k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
16k
Unsuck your backbone
ammeep
671
58k
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