Start SIRI from iOS Application - ios

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://?

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.

SiriKit iOS13 - Siri Dialog not coming

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.

Is it possible to start application from other application

There are many ways to start application from another application in Android.
Is it possible to start application from another application in iOS? If possible, how do I do it?
Yes, it is possible in iOS if provided the app has its URL Scheme set. If you want to open your app from any other your app you can set the custom URL Scheme in info tab of project settings.
To test, run your app, minimize and then open safari and type the URL you just set, hit GO and your app will open.

Opening external app from custom keyboard ios 8

I wanted to know how I can open an external app from a custom keyboard in iOS 8?
is it by example possible to open Facebook, or post a Facebook message from a custom keyboard, if yes, how can I achieve this?
Thank you,
joe
I was trying to work with the UIApplication sharedApplication openURL: method in order to open the AppStore to link to the app so user's could rate it, Xcode kept telling me that the openURL method would not work in the extension. So I am sure you are able to refer back to the app itself but not open other app's which hopefully they will be able to change fairly soon.

Resources