Questions tagged sirishortcuts

Explore the latest questions and answers asked by our top developers.

Siri INPlayMediaIntent not working in anything other than english

I have a program that handles INPlayMediaIntent in an extension. This works fine as long as you are using Siri in english. Switching to another language makes Siri consider the query as a web search. To reproduce, please check out my demo from github and have a look at the Siri-Localized-MediaIntents-Broken folder. Then: Switch Siri […]

By DrMickeyLauer
Categorised as ios, localization, sirikit, sirishortcuts

Can an INIntent property be given the value "Ask Each Time"?

Let’s say I’ve defined a custom intent, called FooIntent, in an .intentdefinition file. It has a single parameter, bar, of type Decimal, for which: – User can supply value in Siri and Shortcuts app is active. – Default Value is 0. Its autogenerated class definition now looks like this: public class FooIntent: INIntent { @NSManaged […]

By Naftali Beder
Categorised as ios, sirishortcuts, swift

Specify "Ask Each Time" as default for a parameter in Siri intent

When displaying an instance of INUIAddVoiceShortcutViewController, I want to let one of the shortcut’s intent’s parameters (of type Decimal) default to Ask Each Time. Right now, it defaults to the Default Value value in the .intentdefinition file. (This field resets to 0 if left blank.) Is there any way to define an intent such that […]

By Naftali Beder
Categorised as ios, sirikit, sirishortcuts

TouchID authentication inside Siri Intent Extension

I have an Intent Extension with the View category that is working pretty good for showing an app info. Now I need to enable TouchID for security reasons, so the user needs to authenticate before requesting the info. I tried this: func handle(intent: GetSaldoIntent, completion: @escaping (GetSaldoIntentResponse) -> Void) { let myContext = LAContext() myContext.evaluatePolicy( […]

By alxlives
Categorised as ios, sirikit, sirishortcuts, swift

How can I tell if my intent is running in the Shortcuts app?

In my app I have created a SiriKit intent that allows the user to search for people. If they trigger this intent directly from Siri then I would like to open my app with this search string and show the results – I can do this by passing .continueInApp and an NSUserActivity to the completion […]

By Paulw11
Categorised as ios, sirikit, sirishortcuts

Siri Intent extension not working in existing App

I have integrated Intent Extension for Siri Kit in existing iOS Application. Siri directly opens my Application instead of showing the information which I wanted to show on Siri screen only. I have referred many sample projects it works fine on that but working when I integrate into my existing App. Good article will help! […]

By Nikhil Nandha
Categorised as ios, sirikit, sirishortcuts

Still Have Questions?

Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us