是否需要使用Sirikit的Apple Watch应用?

发布于 2025-02-10 02:57:02 字数 307 浏览 2 评论 0原文

我已经在iOS应用程序上设置了Siri-我可以使用Inaddtasksintent调用意图,并​​且效果很好。

当我说“嘿Siri,添加任务清洁我的房间为Joshapp”时,它效果很好。

但是,Siri使用相同的命令在我的Apple Watch上不起作用。当我说“嘿Siri,将任务添加到Joshapp中,请添加任务清洁我的房间”时,它会说它找不到该应用程序或在App Store上查看。

我需要创建一个单独的Apple Watch应用程序并处理Siri的意图吗?根据我的研究(顺便说一句,周围的文档很少),除非您设置WatchOS应用程序,否则似乎不可能。

I've set up Siri on my iOS app- I am able to call intents using INAddTasksIntent and it works great.

When I say "Hey Siri, add task clean my room to JoshApp" it works great.

However, Siri does not work on my Apple watch, using the same commands. When I say "Hey Siri, add task clean my room to JoshApp", it will say it cannot find the app or to look on the app store.

Do I need to create a separate Apple watch app and handle the Siri intents there? Based on my research (which incidentally, there is very little documentation around it), it doesn't seem like it is possible unless you set up a watchOS app.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

南七夏 2025-02-17 02:57:02

作为应用程序包的一部分,将意图交付给单个设备:

概述

与Sirikit的交互通过您的意图应用扩展,您可以在iOS或WatchOS应用程序捆绑包中传递。

[...]

启用Siri功能

启用Siri功能可以向您的应用程序增加一组权利。 App Store需要对包含意图扩展的任何iOS应用程序或WatchOS应用都有这些权利。

[...]

来源:

没有安装在WatchOS设备上的关联应用程序捆绑包,它(宽松,我承认)暗示您将无法添加意图扩展以满足您的要求。

Intents are delivered to individual devices as part of app bundles:

Overview

Interactions with SiriKit occur through your Intents app extension, which you deliver inside your iOS or watchOS app bundle.

[...]

Enable the Siri Capability

Enabling the Siri capability adds a set of entitlements to your app. The App Store requires the presence of these entitlements for any iOS app or watchOS app containing an Intents extension.

[...]

Source: Creating an Intents App Extension

Without the associated app bundle being installed on the watchOS device, it's (loosely, I'll admit) implied that you won't be able to add an Intents extension to meet your requirements.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文