不需要代码,新建一个工程,直接在 Info.plist 添加 NSUserActiveTypes ->INSendMessage,在WatchOS上启动App,就会在Mac 上出现 outlook handoff,在iOS上启动App,则不会出现outlook handoff。
No code required, create a new project and add NSUserActiveTypes ->INSendMessage directly to Info.plist. Launch the app on WatchOS, and Outlook Handoff will appear on Mac. Launch the app on iOS, and Outlook Handoff will not appear.
Topic:
App & System Services
SubTopic:
Automation & Scripting
Tags: