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
Can send message to Watch App?
Search
Kishikawa Katsumi
May 27, 2015
Technology
1
1.3k
Can send message to Watch App?
Can send message to Watch App?
Inter-Process Notifications on iOS
Kishikawa Katsumi
May 27, 2015
Tweet
Share
More Decks by Kishikawa Katsumi
See All by Kishikawa Katsumi
Automatic Grammar Agreementと Markdown Extended Attributes について
kishikawakatsumi
0
140
愛される翻訳の秘訣
kishikawakatsumi
3
380
Private APIの呼び出し方
kishikawakatsumi
3
970
iOSでSVG画像を扱う
kishikawakatsumi
0
210
Build your own WebP codec in Swift
kishikawakatsumi
2
1.5k
iOSDC 2024 SMBファイル共有をSwiftで実装する
kishikawakatsumi
1
290
Enhancing Applications with Accessibility API
kishikawakatsumi
3
5.1k
Mastering SwiftSyntax
kishikawakatsumi
4
7.4k
My SwiftData Review
kishikawakatsumi
7
1.5k
Other Decks in Technology
See All in Technology
BiDiってなんだ?
tomorrowkey
2
490
AI時代にあわせたQA組織戦略
masamiyajiri
5
2.5k
【northernforce#54】SalesforceにおけるAgentforceの位置づけ・事例紹介
yutosatou_kit
0
130
ReproでのicebergのStreaming Writeの検証と実運用にむけた取り組み
joker1007
0
450
ALB「証明書上限問題」からの脱却
nishiokashinji
0
250
SREの仕事を自動化する際にやっておきたい5つのポイント
jacopen
6
1k
AWSと暗号技術
nrinetcom
PRO
1
180
習慣とAIと環境 — 技術探求を続ける3つの鍵
azukiazusa1
3
780
オープンウェイトのLLMリランカーを契約書で評価する / searchtechjp
sansan_randd
0
120
AI開発をスケールさせるデータ中心の仕組みづくり
kzykmyzw
0
160
AI開発の落とし穴 〜馬には乗ってみよAIには添うてみよ〜
sansantech
PRO
9
3.9k
「全社導入」は結果。1人の熱狂が組織に伝播したmikanのn8n活用
sota_mikami
0
500
Featured
See All Featured
jQuery: Nuts, Bolts and Bling
dougneiner
65
8.4k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
359
30k
How To Stay Up To Date on Web Technology
chriscoyier
791
250k
Deep Space Network (abreviated)
tonyrice
0
36
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
1
43
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.3k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
0
120
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.3k
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
95
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
410
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
1
430
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
1.9k
Transcript
Apple Watch meetup
https://github.com/kishikawakatsumi/ kishikawa katsumi at Realm Inc http://kishikawakatsumi.hatenablog.com/
Anime Today
Can send message to Watch App?
Watch App => Container App
Watch App => Container App + (BOOL)openParentApplication:(NSDictionary *)userInfo reply:(void (^)(NSDictionary
*replyInfo, NSError *error))reply
Container App => Watch App
mutualmobile/MMWormhole
MMWormhole [self.wormhole passMessageObject:@{@"buttonNumber": @(1)} identifier:@"button"]; [self.wormhole listenForMessageWithIdentifier:@"button" listener:^(id messageObject) {
self.numberLabel.text = [messageObject[@"buttonNumber"] stringValue]; }];
Darwin Notify Center
Darwin Notify Center - Based on the libnotify. - Cannot
be passed "objects" - Cannot be passed "userInfo" - Always "deliver immediately"
Darwin Notify Center CFNotificationCenterRef const center = CFNotificationCenterGetDarwinNotifyCenter(); CFStringRef str
= (__bridge CFStringRef)@"com.kishikawakatsumi.notification.test"; CFNotificationCenterAddObserver(center, (__bridge const void *)(self), notificationCallback, str, NULL, CFNotificationSuspensionBehaviorDeliverImmediately); void notificationCallback(CFNotificationCenterRef center, void * observer, CFStringRef name, void const * object, CFDictionaryRef userInfo) { ... }
App => Today Extension App => Keyboard Extension
App => Other Apps
notify_keys.h /* * File System notifications * These advise clients
of various filesystem events. */ #define kNotifyVFSMount "com.apple.system.kernel.mount" #define kNotifyVFSUnmount "com.apple.system.kernel.unmount" #define kNotifyVFSUpdate "com.apple.system.kernel.mountupdate" #define kNotifyVFSLowDiskSpace "com.apple.system.lowdiskspace" #define kNotifyVFSLowDiskSpaceRootFS "com.apple.system.lowdiskspace.system" #define kNotifyVFSLowDiskSpaceOtherFS "com.apple.system.lowdiskspace.user"
com.apple.springboard.lockcomplete com.apple.springboard.ringerstate com.apple.springboard.deviceWillShutDown com.apple.springboard.lowPowerAlertPresented ...
Inter-Process Notifications on iOS http://realm.io/news/thomas-goyne-fast-inter-process-communication/ References