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
A Quick look at ANCS (Apple Notification Center...
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Johnny Sung
May 13, 2015
Programming
220
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
A Quick look at ANCS (Apple Notification Center Service)
快速看懂 ANCS 文件
Johnny Sung
May 13, 2015
More Decks by Johnny Sung
See All by Johnny Sung
Escape RCA Writing Hell: Using MCP to Let AI Handle the Last Mile of Operations 告別 RCA 撰寫地獄:利用 MCP 讓 AI 替你完成維運最後一哩路 @ DevOpsDays 2026
j796160836
0
74
ArgoCD 新手村:告別手動部署,從 0 到 1 打造自動化部署路徑 @ CNTUG meetup #73
j796160836
0
44
CI/CD 落地指南:用開源 Jenkins & Ansible 打造自動化部署平台 @ DevOps Taiwan Meetup #76
j796160836
0
29
全端 AI 實戰:Gemini x Antigravity 快速開發與 PentestGPT 滲透攻防實務
j796160836
0
65
Event Driven Ansible (EDA) 使用情境分享 @ Red Hat Ansible User Club 線上交流會
j796160836
0
44
用 Gemma 3 開放模型來解決企業難解的問題 @ COSCUP 2025
j796160836
0
66
[GDG Build with AI] 善用現代 AI 科技:打造專屬行銷工具箱 @ GDG Changhua 彰化
j796160836
0
57
Kubernetes 地端自建 v.s. GKE,哪個更適合你? @Devfest Taipei 2024
j796160836
0
100
地端自建 Kubernetes (K8s) 小宇宙 (On-premises Kubernetes) @ CNTUG 2024/11 Meetup #63
j796160836
0
73
Other Decks in Programming
See All in Programming
[RVD26] Vibe Architecture en 2040 : Darwin a-t-il (enfin) eu raison des architectes ?
alexandretouret
0
110
PHP Application における Kubernetes 内 gRPC 通信
ganchiku
0
550
数百円から始めるRuby電子工作
tarosay
0
110
Terraform標準の組織で AWS CDKをどう使うか
mu7889yoon
1
400
属人化した知識を、 AIが辿れる地図にする
pkshadeck
PRO
1
110
ここ半年くらいでAIに作らせたR用ツール
eitsupi
0
330
【SRE NEXT 2026 Lunch Session】一人目専任SREの立ち上げを加速する ― AIと進めたオンボーディングで2分を0.04秒にした話
pkshadeck
PRO
0
3.2k
信頼性について考えてみる(SRE NEXT 2026 miniLT)
hayama17
0
220
Apache Hive: そしてCloud Native Lakehouseへ
okumin
1
180
使用 Meilisearch 建立新聞搜尋工具
johnroyer
0
180
Lean は証明の正しさを確認するためだけのツールって思ってませんか?
inoueasei
1
120
The Bowling Game- From Imperative to Functional Programming - Part 1
philipschwarz
PRO
0
350
Featured
See All Featured
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
The SEO identity crisis: Don't let AI make you average
varn
0
520
Mobile First: as difficult as doing things right
swwweet
225
10k
Site-Speed That Sticks
csswizardry
13
1.4k
Leo the Paperboy
mayatellez
8
1.9k
Speed Design
sergeychernyshev
33
1.9k
Producing Creativity
orderedlist
PRO
348
40k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
390
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
310
Designing for humans not robots
tammielis
254
26k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
10k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
670
Transcript
A Quick look at ANCS (Apple Notification Center Service) Johnny
Sung
聃铞➛㣔剤➃䌟"QQMF8BUDI
How about ?
None
不只 AndroidWear 其他 BLE 開發版也可以做
其實不只AndroidWear 其他BLE開發版也可以做 http://lukeberndt.com/wp-content/uploads/2014/09/ancs-1024x641.jpg
ANCS僽➊랃
ANCS = Apple Notification Center Service ANCS is to give
Bluetooth accessories (that connect to iOS devices through a Bluetooth low-energy link) a simple and convenient way to access many kinds of notifications that are generated on iOS devices.
矦㋲闍♧♴ BLE 㛇劥嚌䙂
BLE 的⾓角⾊色
以 ANCS 為例 AndroidWear iPhone Notification Consumer (NC) Notification Provider
(NP)
("55须俲穡圓
⟃"/$4捀⢿ ANCS Service 7905F431-B5CE-4E99-A40F-4B1E122D00D0 Notification Source Control Point Data Source
9FBF120D-6301-42D9-8C58-25E699A21DBD 69D1D8F3-45E1-49A8-9821-9BBDFDAAD9D9 22EAC6E9-24D6-4BB5-BE44-B36ACE7C7BFB (writeable) (notifiable) (notifiable)
Register Flow
Notification Source 回傳封包
• Notification Added = 0 • Notification Modified = 1
• Notification Removed = 2 EventID Notification Source
• Other = 0 • IncomingCall = 1 • MissedCall
= 2 • Voicemail = 3 • Social = 4 • Schedule = 5 • Email = 6 • News = 7 • HealthAndFitness = 8 • BusinessAndFinance = 9 • Location = 10 • Entertainment = 11 CategoryID Notification Source
⡹䊺竤〳⟃荈䊹⨞♧⦐ ✫ ⵌ鸏酭 http://l8smartlight.com/
https://www.youtube.com/watch?v=is8KMmE5030 https://www.youtube.com/watch?v=GV21uziG_OM
麌⡲崩玑㕮
叆鑉䲀久鎝䜂
傳送 接收 叆鑉䲀久鎝䜂 0 0
傳送 AttributeID • AppIdentifier = 0 • Title = 1
• Subtitle = 2 • Message = 3 • MessageSize = 4 • Date = 5 0 叆鑉䲀久鎝䜂
接收 • AppIdentifier = 0 • Title = 1 •
Subtitle = 2 • Message = 3 • MessageSize = 4 • Date = 5 "com.apple.AppStore" "已更新「Adobe Photoshop Mix」和其他 6 個應⽤用程式" "App Store" "20150324T225555" nil 36 AttributeID 0 叆鑉䲀久鎝䜂
範例 Request AttributeID • AppIdentifier = 0 • Title =
1 • Subtitle = 2 • Message = 3 • MessageSize = 4 • Date = 5 "com.JohnnyWorks.SHRS-Radio" "⺟母親像⽉月亮⼀一樣~古典逍遙遊祝全天下的媽媽,⺟母親節快樂!" "世新廣播電臺" "20150510T100002" nil 28 Response 叆鑉䲀久鎝䜂
叆鑉"QQそ珖
App Identifier = "com.apple.AppStore" 叆鑉"QQそ珖 傳送 接收 AttributeID • DisplayName
= 0 1 1 Attribute Value = "App Store" App Identifier = "com.apple.AppStore" 0 0 Attribute Length = 9 AttributeID = 0 AttributeID = 0
ANCS 注意事項 • 字串資料都會以 UTF-8 的編碼傳遞 • 數值資料都會以 Little-endian 的⽅方式傳遞
MessageHorn
None
None
AndroidWear⛳〳⟃䖎惐
References • Apple Notification Center Service (ANCS) Specification • https://developer.apple.com/library/ios/documentation/CoreBluetooth/Reference/
AppleNotificationCenterServiceSpecification/Introduction/Introduction.html • Core Bluetooth Programming Guide • https://developer.apple.com/library/ios/documentation/NetworkingInternetWeb/ Conceptual/CoreBluetooth_concepts/AboutCoreBluetooth/Introduction.html • INDANCSClient • https://github.com/indragiek/INDANCSClient
https://www.facebook.com/groups/353660298163446/ 穿戴式裝置開發者社群 歡迎您的加⼊入