Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
[Wheel Lab #2] Apple Service with Rails.
Search
HeChien Hsu
September 17, 2013
Technology
110
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
[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
66
[Kaohsiung Rails meetup] 國際化影片分享網站
hechien
0
200
[Sokoos][教育訓練] Git - 1
hechien
0
170
[數位教學] 用Bootstrap製作網頁
hechien
0
1.4k
DesignYou - 專題報告投影片
hechien
0
140
[作業] 創意美學
hechien
0
81
[教育訓練] Rails Form Basic
hechien
1
88
[教育訓練] Rails Validation Basic
hechien
1
110
Rails Layout Basic
hechien
2
140
Other Decks in Technology
See All in Technology
自作バイナリを動かす「入口」8選
puhitaku
1
1.1k
分析の民主化を支えるメタデータ整備の実践
kakehashi
PRO
3
1.1k
オブザーバビリティを高める AI エージェント体験を考える / Designing AI Agent Experiences That Enhance Observability
aoto
PRO
2
320
無理せず続ける、子育てエンジニアの学び
codmoninc
PRO
0
490
AIがコードを書く時代に、エンジニアは何で自分の価値を証明するのか / In an era where AI writes code how do engineers prove their value
carta_engineering
0
490
AI時代だからこそ推したい!Gitコマンド再入門
munakata
0
160
AI Made Us Faster at Solving the Wrong Problems
marceloancelmo
0
190
プロダクト価値を、 チームが使える判断軸に変える
vivion
0
140
不可逆な意思決定を避けながら10億超の顧客データを AI Ready にするデータ基盤設計
baseballyama
1
190
Essential architectural thinking (revised edition)
ufried
0
110
TinyGoでオブザーバビリティ?OpenTelemetryはTinyGoで使えるのか / Is OpenTelemetry available in TinyGo environment?
ymotongpoo
2
110
二歩目のフロントエンド・ウェブアクセシビリティ
camiha
2
160
Featured
See All Featured
Visualization
eitanlees
153
17k
Building the Perfect Custom Keyboard
takai
2
900
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
3
1.3k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
2
2k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
260
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
1
620
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
550
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
1k
Build your cross-platform service in a week with App Engine
jlugia
234
19k
Fantastic passwords and where to find them - at NoRuKo
philnash
53
4k
RailsConf 2023
tenderlove
30
1.6k
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