【问题标题】:Sirikit supported services and its extended usageSirikit 支持的服务及其扩展用途
【发布时间】:2016-10-05 15:23:24
【问题描述】:

我有一个道路救援服务申请。它具有一些类似于乘车预订应用程序(例如优步)的功能。我可以在多大程度上利用 iOS 10 Sirikit?可能,苹果可以拒绝它。但我需要知道技术可行性。

我的应用程序的功能 - 我在路中间爆胎了。我的车需要拖车协助。我提供了我当前的位置,并要求我的应用程序将其拖到我首选的经销商位置。我为服务付费并等待提供商响应。我从我的服务提供商处收到有关驱动程序的持续更新。

尝试的第一步:我正在尝试打开我的应用程序,并显示“Siri,为我的爆胎获取路边援助”。我需要打开我的应用程序并捕获 FLAT TIRE 作为参数。但我做不到。

我尝试使用 AppIntentVocabulary.plist。它不起作用。我遗漏了一些东西,互联网上没有完整的教程。任何帮助深表感谢。

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

【问题讨论】:

    标签: ios swift siri sirikit


    【解决方案1】:
    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

    【讨论】:

    • 请给我所需的确切信息。我已经浏览了通用的实现细节。
    【解决方案2】:

    您真的不能以任何明智的方式为用户执行此操作。尽管您的应用程序的用例将映射到叫车意图,但词汇表不会。 Siri 几乎没有给你任何选项来影响她用来与你的用户交流的词汇。如果您只能教您的用户请求拖车实际上是在请求搭车... :)

    Apple 分析了他们支持的领域以及在这些领域中使用的词汇,并以 Siri 支持的每种语言/文化“教”了他们给 Siri。从 Apple 的角度来看,这完全有道理,因为您很难自己做到这一点。

    【讨论】:

    • 好的。 AppIntentVocabulary.plist 有什么用?
    • @vivin 您可以在 AppIntentVocabulary 中定义 专有名称,这样 Siri 在与她交谈时会理解并回复它们。您只能为锻炼名称(“jumping jacks”)和骑行选项(“sportscar”)定义它们。 developer.apple.com/library/content/documentation/Intents/…
    猜你喜欢
    • 1970-01-01
    • 2011-09-15
    • 2016-09-10
    • 1970-01-01
    • 2023-02-20
    • 1970-01-01
    • 2018-11-21
    相关资源
    最近更新 更多