2016-10-05 81 views
4

我有一个路边援助服务应用程序。它具有一些类似于乘坐预订应用程序的功能(例如优步)。我能在多大程度上利用iOS 10 Sirikit?可能是,苹果可以拒绝它。但我需要知道技术上的可行性。Sirikit支持的服务及其扩展使用

我的应用程序的功能 - 我在轮胎瘪的道路中间被击中。我需要一个拖车协助我的车。我给我目前的位置,我问我的应用程序拖到我的首选经销商位置。我为该服务付费并等待提供商作出回应。我收到来自服务提供商的关于该驱动程序的持续更新。

第一步尝试:我试图打开我的应用程序的声明“Siri,得到我的爆胎路边援助”。我需要打开我的应用程序并捕获FLAT TIRE作为参数。但我不能。

我试过使用AppIntentVocabulary.plist。它没有工作。我错过了一些东西,在互联网上没有完整的教程。任何帮助深表感谢。

范例项目: Github的链接,我简单的Siri的集成: https://github.com/vivinjeganathan/SiriExample

回答

0
This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software. 

SiriKit is a way for you to make your content available through Siri. It also lets you add support for your services to the Maps app. To support SiriKit, you use the Intents framework and Intents UI framework to implement one or more extensions that you then include inside your iOS app. When the user requests specific types of services through Siri or Maps, the system uses your extensions to provide those services. 

Add SiriKit support only if your app implements one of the following types of services: 

Audio or video calling 

Messaging 

Payments 

Searching photos 

Workouts 

Ride booking 

Check this Link: http://airflypan.com/foundation-course/233 

http://airflypan.com/foundation-course/233

+1

请给我所需的确切信息。我已经完成了通用的实现细节。 – vivin

0

你真的不能在用户的任何合理的方式做到这一点。虽然你的应用程序的用例将映射到骑意味着词汇不会。 Siri几乎没有选择影响她用来与用户沟通的词汇。如果你只能教你用户,请求拖曳实际上是请求乘坐...... :)

苹果已经分析了他们支持的域名以及在这些域名中使用的词汇并将它们“教”给了Siri Siri支持的每种语言/文化。这从苹果的角度来看是完全意义上的,因为你很难自己做到这一点。

+0

好的。 AppIntentVocabulary.plist有什么用? – vivin

+0

@vivin你可以在AppIntentVocabulary中定义_proper names_,这样Siri在与她交谈时就会明白,并且可以回应他们。您只能为锻炼名称(“跳跃千斤顶”)和乘坐选项(“跑车”)定义它们。 https://developer.apple.com/library/content/documentation/Intents/Conceptual/SiriIntegrationGuide/SpecifyingCustomVocabulary.html#//apple_ref/doc/uid/TP40016875-CH6-SW1 –