I have added an Intent Extension for my app, now after Siri shows the result I need to pass only a string to the iOS app to trigger a function. First I have added this code on AppDelegate
private func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([Any]?) -> Void) -> Bool {
if userActivity.activityType == "ShopIntent" {
print("tap tap")
}
return true
}
but nothing happens when I tap the Siri UI. How can handle the tap and pass the data?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…