SiriKit iOS13 - Siri Dialog not coming - ios

I am integrating SiriKit into my iOS 13 app.
For that I am using Apple's Sample app - Soup Chef for understanding it.
In my Custom Intent, I have selected Ask Each Time in Shortcuts App for quantity value.
But, When I run the shortcut from Hey, Siri!, it redirect me to Shortcuts App, instead of Siri asking me about quantity.
I have Siri Dialog enabled already.
How can I force Siri to ask me the question, instead of getting redirected to Shortcuts App?

This seems to be an issue in iOS13.0. Try running this on a device running iOS13.1, and it should work.

SiriKit stopped using Siri Dialog prompts (iOS13.1)
https://forums.developer.apple.com/thread/122235
Apple is in the process of integrating the new version of Siri. So it deactivates some features.

Related

Is there a way to package a Siri Shortcut Automation as part of my iOS App?

I have created a Siri Automation from Shortcuts app. Like, everytime the user opens Music app, it redirects to Safari. This was just for the purpose of experimentation. Can this be "Packaged" in a swift app that I am creating?
Basically, I want something like an Install Automation button in my app, that will install this automation (with user's permission, of course) to the user?
One way I can think of is by sharing this new shortcut as an iCloud link - https://support.apple.com/guide/shortcuts/share-shortcuts-apdf01f8c054/ios
Having an icloud link, your app can request Safari to open this link and then the user can install it by clicking on "Get Shortcut".
So yeah, a pretty straightforward way I think.

Recommend shortcut in Siri after creating Siri shortcut - React Native

I have successfully implemented shortcut in React Native project via react-native-siri-shortcut npm.
I am able to see all those shortcuts in Shortcut app(in iOS).
When I open Siri and speak them, Siri just opens my app.
I have added SiriShortcutListener in my app, and just displayed alert.
I don't know how to make Siri recommend some stuff or perform the action as I want it to.
Do I have to make any UI for that? Also, how activityType should be used?
Any proper link or tutorial/help will be appreciated.
I'm not sure how the Siri shortcut will work on react-native but as a part of iOS native app development, you have to add SiriKit Intent Definition File to your project.
Once you add that file to your project you will have to add New Intent and have to configure it the way you would like to utilize it in your app.
I hope it will give some hint on your further research or developing.

Are voice shortcuts for custom SiriKit Intents supported on watchOS?

I’m trying to get a voice shortcut for a custom Siri Intent working as part of an Apple Watch app, but I’m not sure whether that’s possible. Has anyone had success with this or know if it’s supported?
There isn't much code to share in this case, since most of the code is auto-generated by Xcode, but here’s a quick overview of how I have everything set up.
I created a custom Intent with a .intentdefiniton file and separate Intents Extension targets for my iOS app and watchOS app to handle the Intent.
I set up and donate the shortcuts at the appropriate time. I included an INUIAddVoiceShortcutButton in my app so a user can easily add or edit a phrase for the shortcut.
Everything works fine on an iPhone: the shortcut shows up at relevant times throughout iOS, and the Intents Extension in my iOS app handles the shortcut when I say the invocation phrase to Siri.
Since 20% of my app’s users use the Apple Watch app, I want to provide a congruent experience on watchOS. The donated shortcut shows up on the Siri watch face, as expected. I trigger the shortcut from the Siri watch face, and is handled by the Intents Extension that's part of my watchOS app.
When I say the intent’s invocation phrase to my Apple Watch (Series 3 GPS-only), however, it doesn’t work. Siri says:
Checking with the app...
Then a few seconds later:
I do not recognize that command.
I’ve tried this with a separate Intents Extension for my watchOS app, and without. I get the same results in both situations. It works on the simulator, but not on a real device.
I’ve also made sure I have my Watch Extension and Watch App selected under Target Membership for the .intentdefinition file.
I’ve also tried going into Settings > Developer and enabling Display Recent Shortcuts then tapping Force Sync Shortcuts to Watch, but that doesn’t change the behavior.
Are voice shortcuts for these custom intents even supported on Apple Watch? I haven’t been able to tell one way or another with Apple’s documentation. The SoupChef sample project is set up with an Intents Extension for the watchOS app, which makes me think it should be supported. And, since it works on the simulator, that makes me think it should be supported.
However, this page doesn’t list custom intents as being supported on watchOS, so that makes me think they may not be supported: https://developer.apple.com/design/human-interface-guidelines/watchos/user-interaction/siri/
If anyone can help me figure out whether this is supported I’d really appreciate it. I’m not sure if I’m doing something wrong or if this just isn’t supported.
The problem was on my Apple Watch.
I was able to get it working by erasing the watch (Settings > General > Reset > Erase All Content and Settings) then restoring it from a backup.

Can't disable Sirikit in an app

I added SiriKit to a version of my, but then decided to remove it. The problem is that Siri still offers to use my app when I ask it to do the function that app used to do. I have deleted and re-installed the app (with no Siri support), but it still wants to use my app when I speak the keywords that another version of the app once supported. I restarted the iPhone, but it still remember. I also disabled Siri in the settings for this app; still remembers.
Is this an iOS 11 bug?
Found the solution:
You need to go back to the version of the app that supported SiriKit and in the info.plist for the Intent extension and in the IntentsSupported remove the intent that your app previously supported and replace it with some other intent.
Seems like an iOS bug. Disabling Siri for the app in the Settings should have disabled Siri from using the app for the intent.

Start SIRI from iOS Application

I want to start siri programmably from my application.
There is any way to do it from my app like launch another app from package name ?
Nope. I think you're looking for a uikit class analogous to NSWorkspace on the mac. There is no NSWorkspace api. That said, You can ask your application to open a URL who's scheme is handled by another application, but that won't work for siri unless siri has a scheme... maybe... siri://?

Resources