Apple Watch App, iOS App Connectivity
3 ways for communication between iOS Apps and WatchApps
- updateApplicationContext(_:)
- transferUserInfo(_:)
- sendMessage(_:replyHandler:errorHandler:)
프로젝트 구성
- iOS bundle name을 WatchApp Info.plist WKCompanionAppBundleIdentifier key로 등록한다
- WatchApp Extension Info.plist에 NSExtension > NSExtensionAttributes > WKAppBundleIdentifier에 key 값에 WatchApp Bundle ID를 등록한다