Siri's voice invocation to open App and pass the intent

Hi All,

requirement - "Search (placeholder) in (myApp)".

When user speaks this strings, Siri should open the app and pass the placeholder. This worked for me only when i used an AppEnum (with specific defined set) with AppEntity. I want the placeholder to be dynamic and not defined via the AppEnum.

Have observed this feature working fine with Youtube, Spotify & Whatsapp apps.

Is there anything else that these app add specifically to make this work. ? Also in these app's Siri settings, there is a toggle named - 'Use with Ask Siri'. Could someone please help in understanding, how this option is enabled ?

Please see App Intents. More specifically our Accelerating app interactions with App Intents and Making your app’s functionality available to Siri samples.

Hopefully this helps. Please reply here if you have additional questions or concerns.

Rico

WWDR - DTS - Software Engineer

Won't INSearchForMediaIntent help in solving this ? Have tried integrating this in the app but Siri is not recognising the search phrase.

Search phrase - "Search (placeholder) in (myApp)"

Using the AppIntents, we need to define AppEnums which opens the app only when it exactly matches with the placeholder. Is there any sample code for INSearchForMediaIntent and its usage ?

The CarPlay Music sample shows an integration with the INPlayMediaIntent and a custom intent. INSearchForMediaIntent should behave similarly, in terms of setup. There is one additional step where Siri will ask for permission to use your app and from there the integration should work. This happens when you invoke Siri and it realizes your app is registered with an Intent relative to the request.

Rico

WWDR - DTS - Software Engineer

Tried the above approach but still the Search is not getting recognised.

For testing purpose, had added INPlayMediaIntent and Siri is able to recognise the Play phrase and tries to open the app.

Is there any other way to make it work ?

While debugging the logs in console application, observed that while using Search pharse with Spotify/Youtube , it was going through this thread -

(17:27:16.545403+0530 runningboardd executeLaunchRequest)

and finally uses UIIntentForwardingAction to open the app.

Also wanted to understand how the app opens(basically the lifecycle) when we speak a generic phrase like (Open XYZ) because the AppDelegate's/SceneDelegate lifecycle methods were not getting called.

Hi Team,

Any update on this query ?

Siri's voice invocation to open App and pass the intent
 
 
Q