WatchOS INSendMessage handoff

Add NSUserActiveTypes ->INSendMessage Intent to info. plist. Starting the app on watchos will handoff Outlook on Mac? Normal on iOS.

Answered by DTS Engineer in 843398022

Can you explain more about how your app is implemented, how it uses the send message intent, and the phrases you are using to invoke the intent? Adding more information, like that listed in Tips on writing forums posts, will help us understand the nature of your question better.

Accepted Answer

Can you explain more about how your app is implemented, how it uses the send message intent, and the phrases you are using to invoke the intent? Adding more information, like that listed in Tips on writing forums posts, will help us understand the nature of your question better.

There's a lot more to implementing the SiriKit Messaging domain than that. If you happened to notice this as you started to implement that SiriKit feature for your app, I'd see if this still happens once you have a complete skeleton of the messaging intent ready for the system, with the intent handling protocols implemented, and declaring of the intents through the UI in the General tab for your Xcode target (which will configure the Info.plist with more than just NSUserActivityTypes). If you still see this after getting that far, then I'd file a bug report and post the FB number here.

— Ed Ford,  DTS Engineer

According to this document: https://developer.apple.com/documentation/usernotifications/implementing-communication-notifications Communication notifications provide a rich experience for direct communication. These notifications have a unique user experience, highlighting prominent avatars and group names. But when NSUserActiveTypes ->INSendMessage Intent is added to info. plist, the WatchOS startup app will display Outlook Handoff on Mac. However, there will be no Outlook Handoff after iOS startup.

按照此文档:https://developer.apple.com/documentation/usernotifications/implementing-communication-notifications 通讯通知为直接沟通提供了丰富的体验。这些通知具有独特的用户体验,突出了醒目的头像和群组名称。 但是当添加NSUserActivityTypes->INSendMessageIntent到info.plist后,WatchOS启动App就会在Mac 上出现Outlook接力。但是iOS启动后不会出现Outlook接力。

哈哈哈,已解决。Watch App启动后好像默认会激活info.plist->NSUserActiveTypes里的第一个,不要把INSendMessageIntent放在第一个,第一个放一个自定义的String。

Hahaha, it has been resolved. After the Watch App is launched, it seems that the first option in info. plst ->NSUserActiveTypes will be activated by default. Do not put INSEndMessage Intent in the first option, instead, place a custom String in the first option.

After the Watch App is launched, it seems that the first option in info. plst ->NSUserActiveTypes will be activated by default. Do not put INSEndMessage Intent in the first option, instead, place a custom String in the first option.

That's an interesting discovery! Please open a bug report with all the details that you have, and include a sysdiagnose as well so that we can look into this. Once you have that filed, please post the FB number here for the record.

— Ed Ford,  DTS Engineer

WatchOS INSendMessage handoff
 
 
Q