简体   繁体   English

iOS Siri套件集成 - 调用应用程序并发送自定义指令

[英]iOS Siri kit integration - invoke the app and send the custom instruction

Here is my detailed description to achieve by using Siri. 这是我使用Siri实现的详细描述。

I'm new in Siri kit integration. 我是Siri套件集成的新手。 I have an app which has certain functionalities like send some information to server. 我有一个应用程序具有某些功能,如向服务器发送一些信息。 The input is number. 输入是数字。 Below mentioned actions I want to do via Siri : 我想通过Siri做的下面提到的行动:

  • Instruct to Siri - Send MyAppname amount used 指示Siri - 发送使用的MyAppname金额

  • Siri asks - what is the amount. Siri问 - 金额是多少。

  • Instruct to Siri - Submit 指示Siri - 提交

Go through Apple doc and some of other blogs but I didn't find any solution as per my requirements. 浏览Apple doc和其他一些博客但我根据我的要求找不到任何解决方案。 1. https://developer.apple.com/library/prerelease/content/documentation/Intents/Conceptual/SiriIntegrationGuide/SiriDomains.html#//apple_ref/doc/uid/TP40016875-CH9-SW2 1. https://developer.apple.com/library/prerelease/content/documentation/Intents/Conceptual/SiriIntegrationGuide/SiriDomains.html#//apple_ref/doc/uid/TP40016875-CH9-SW2

2. http://jamesonquave.com/blog/adding-siri-to-ios-10-apps-in-swift-tutorial/ 2. http://jamesonquave.com/blog/adding-siri-to-ios-10-apps-in-swift-tutorial/

Do we have any custom Intent to perform this? 我们有任何自定义Intent来执行此操作吗?

Is there any way to achieve this actions Please let me your ideas. 有没有办法实现这个行动请告诉我你的想法。

Thanks in advance. 提前致谢。

You can only use the intents from the available domains. 您只能使用可用域中的意图。 If you want to send money or something similar to another user use the INSendPaymentIntent intent. 如果您想向其他用户发送金钱或类似内容,请使用INSendPaymentIntent意图。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM