意图没有出现在支持的意图中

发布于 2025-01-27 01:06:53 字数 1198 浏览 1 评论 0 原文

链接到我到目前为止与我合作的所有代码: https://github.com/banool/respose

我想制作一个应用程序,用户有可能激活某些意图,以响应iOS快捷方式应用程序中的某些事件而定义为操作。例如:

  1. 如果我打开应用X。
  2. 而是从我的应用程序中运行意图。

我以前在其他应用程序中看到过这一点,所以我知道这是可能的。

我有一个意图定义(请参阅附件以及图像),据我所知,这似乎是正确的。我认为我不需要意图扩展,因为我不打算在后台或通过Siri处理意图。

我注意到,当我尝试在下添加意图时,我的目标 - >一般 - >支持的意图,下拉列表没有显示我的意图,只有内置的系统意图。

我不确定我在这里做错了什么。我只需遵循Apple的官方指南:

我认为现在我使用的颤音不应该如此重要的事实(我认为这更关心该应用程序实际上从快捷方式打开时),但也许我错了。

我已经在App Store Connect上注册了该应用程序,并且正在使用具有启用Sirikit功能的标识符。我还在Xcode中添加了“ Siri”功能。我已经在模拟器和真实设备上尝试过,结果是相同的。

任何帮助将不胜感激,谢谢!

Link to all the code I'm working with so far: https://github.com/banool/respose.

I want to make an app where it is possible for users to activate some intent it defines as an action in response to some event in the iOS shortcuts app. For example:

  1. If I open app X.
  2. Run intent from my app instead.

I've seen this done before in other apps, so I know it's possible.

I have an intent defined (see attached code as well as image) that seems to be correct as far as I can tell. I don't think I need an intent extension because I don't intend to handle the intent in the background or via Siri.

I notice that when I try to add an intent under My Target -> General -> Supported Intents, the dropdown doesn't show my intent, only the built in system intents.

I'm not sure what I'm doing wrong here. I got to this point just by following the official guide from Apple: https://developer.apple.com/documentation/sirikit/adding_user_interactivity_with_siri_shortcuts_and_the_shortcuts_app.

I don't think the fact that I'm using Flutter should matter so much right now (I figure that's more of a concern for when the app actually opens up from the shortcut), but perhaps I'm wrong.

I have registered the app on App Store connect and I'm using an identifier that has the sirikit capability enabled. I've also added the "Siri" capability in XCode. I've tried this on both a simulator and a real device, the results are the same.

Any help would be much appreciated, thanks!

xcode intent screenshot

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

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

发布评论

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

评论(1

如若梦似彩虹 2025-02-03 01:06:53

也有同样的问题。
看来您只能在没有提示的情况下输入类名,它应该可以正常工作。虽然不要忘记选择适当的目标

Had the same issue.
It seems that you can just type the class name without prompt, and it should work just fine. Don't forget to select proper target though

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