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
CSS、JSをHTMLテンプレートにまとめるフロントエンド戦略
d120145
0
280
VISITS_AIIoTビジネス共創ラボ登壇資料.pdf
iotcomjpadmin
0
160
Node-REDのFunctionノードでMCPサーバーの実装を試してみた / Node-RED × MCP 勉強会 vol.1
you
PRO
0
110
米国国防総省のDevSecOpsライフサイクルをAWSのセキュリティサービスとOSSで実現
syoshie
2
1k
Postman AI エージェントビルダー最新情報
nagix
0
100
Кто отправит outbox? Валентин Удальцов, автор канала Пых
lamodatech
0
330
Clineを含めたAIエージェントを 大規模組織に導入し、投資対効果を考える / Introducing AI agents into your organization
i35_267
4
1.5k
製造業からパッケージ製品まで、あらゆる領域をカバー!生成AIを利用したテストシナリオ生成 / 20250627 Suguru Ishii
shift_evolve
PRO
1
130
Observability в PHP без боли. Олег Мифле, тимлид Altenar
lamodatech
0
330
生成AIでwebアプリケーションを作ってみた
tajimon
2
140
Snowflake Summit 2025全体振り返り / Snowflake Summit 2025 Overall Review
mtpooh
2
390
2年でここまで成長!AWSで育てたAI Slack botの軌跡
iwamot
PRO
4
660
Featured
See All Featured
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
48
2.8k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
8
670
Producing Creativity
orderedlist
PRO
346
40k
Designing for humans not robots
tammielis
253
25k
Code Reviewing Like a Champion
maltzj
524
40k
The Cost Of JavaScript in 2023
addyosmani
51
8.4k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
228
22k
Docker and Python
trallard
44
3.4k
RailsConf 2023
tenderlove
30
1.1k
The Art of Programming - Codeland 2020
erikaheidi
54
13k
StorybookのUI Testing Handbookを読んだ
zakiyama
30
5.8k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
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