我在手机中添加了 Siri 快捷方式,每当我在 Siri 中调用快捷方式时,它都会打开 iOS 应用程序。
它不执行我写的意图。
以下是我的 IntentHandler.swift
import Intents
class IntentHandler: INExtension {
override func handler(for intent: INIntent) -> Any {
// This is the default implementation. If you want different objects to handle different intents,
// you can override this and return the handler you want for that particular intent.
return self
}
}