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
87
0
Share
[Wheel Lab #2] Apple Service with Rails.
這是我在Wheel Lab #2的演講投影片,歡迎參考。
HeChien Hsu
September 17, 2013
More Decks by HeChien Hsu
See All by HeChien Hsu
Using Git hosting
hechien
0
48
[Kaohsiung Rails meetup] 國際化影片分享網站
hechien
0
170
[Sokoos][教育訓練] Git - 1
hechien
0
160
[數位教學] 用Bootstrap製作網頁
hechien
0
1.3k
DesignYou - 專題報告投影片
hechien
0
120
[作業] 創意美學
hechien
0
62
[教育訓練] Rails Form Basic
hechien
1
79
[教育訓練] Rails Validation Basic
hechien
1
88
Rails Layout Basic
hechien
2
130
Other Decks in Technology
See All in Technology
暗黙知について一歩踏み込んで考える - 暗黙知の4タイプと暗黙考・暗黙動へ
masayamoriofficial
0
220
Strands Agents × Amazon Bedrock AgentCoreで パーソナルAIエージェントを作ろう
yokomachi
2
250
OCI技術資料 : 証明書サービス概要
ocise
1
7.2k
自分をひらくと次のチャレンジの敷居が下がる
sudoakiy
5
1.9k
AIドリブン開発の実践知 ― AI-DLC Unicorn Gym実施から見えた可能性と課題
mixi_engineers
PRO
0
120
シン・リスコフの置換原則 〜現代風に考えるSOLIDの原則〜
jinwatanabe
0
140
レガシーシステムをどう次世代に受け継ぐか
tachiiri
0
300
40代からのアウトプット ― 経験は価値ある学びに変わる / 20260404 Naoki Takahashi
shift_evolve
PRO
5
900
AI時代に新卒採用、はじめました/junior-engineer-never-die
dmnlk
0
200
Network Firewall Proxyで 自前プロキシを消し去ることができるのか
gusandayo
0
210
サイバーフィジカル社会とは何か / What Is a Cyber-Physical Society?
ks91
PRO
0
150
Databricks Appsで実現する社内向けAIアプリ開発の効率化
r_miura
0
340
Featured
See All Featured
Abbi's Birthday
coloredviolet
2
6.4k
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
310
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
340
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
670
How to Ace a Technical Interview
jacobian
281
24k
Amusing Abliteration
ianozsvald
1
150
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
160
The World Runs on Bad Software
bkeepers
PRO
72
12k
Design in an AI World
tapps
0
190
Game over? The fight for quality and originality in the time of robots
wayneb77
1
160
BBQ
matthewcrist
89
10k
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