Can my Swift app detect that it was opened by Siri? I'd like to open to a specific viewController if (and only if) my app was opened by Siri.
It became possible in watchOS3.2. in your ExtensionDelegate, implement the function handle(userActivity). If your app is opened from Siri, userActivity.activityType will be the name of the INIntentResponse that was provided by your IntentHandler, so you just have to check if userActivity.activityType equals any of the INIntentResponse names that your Intents Extension can handle.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With