How do I tell when Siri opened my WatchOS app without using Siri Intents? - swift

Basically the title. It's possible to open apps by just telling Siri "Open " without giving your app an entitlement or adding intents, so I was wondering if it's possible to detect if the app can detect if it's been opened by Siri using something like onContinueUserActivity.
I've tried looking all over the internet to see what types of activities open the app and trigger onContinueUserActivity but documentation is scarce.

Related

Difference between Custom Intents and App Intents

On an IOS app built using SwiftUI on XCode, can someone explain the difference between custom intents and app intents, and provide documentation for the type of intent needed to create a shortcut from an installed app with the same functionality as the manual "repeat text" shortcut created on my phone which listens for speech and repeats it using Siri speakers?

Select a calendar dialog window from console app

I have a console app written with Swift to add events and reminders. I need be able to show 'select calendar' dialog from it. Is there any standar way to show this dialog or it needs to be created manually using NSAlert?
Sorry, kind of newbie in mac development, need this console app to interact with macos through electron app.

Is it possible to let Siri push button in swift app?

Is it possible to ask Siri to push buttons in the app with the text to speech?
I mean, I have a calculator and pushing the button of "dictation" Siri should be able to understand to push + button instead of just write inside the lable the text.
Thank you!
Siri cannot be used inside apps. Moreover, you can only use Siri for handling intents that are part of the SiriKit framework, which is quite limited at the moment.
VoiceOver is perfectly capable of what you need to do. It was designed for navigating through an app with voice commands as part of the Accessibility framework.
The Speech framework as suggested by others is not available in watchOS and wasn't really designed for voice navigation.
You will need to use Speech framework for that. It would not be possible with Siri. You can go through Apple documentation for that.

Does tvOS provide a standard alert for force-updating app?

Sometimes users have to update app to be compatible with server API, so I need to show a must-update-now alert. Is there some build-in message in all supported languages in tvOS or I have to provide such message myself for all languages?
And how do I go to App Store page for my app in tvOS?
Update: I see that there is Harpy/Siren library for ObjC/Swift so it looks like I will have to translate it myself.

Is there a way to launch Voice Control programmatically on the iPhone?

Is there a way to launch Voice Control programmatically just like you can launch Safari? If so, how?
Other apps can be opened only if there is a URL scheme they've registered. This is how you can open Safari or Mail or even Maps programmatically, but not arbitrary applications. The list of Apple supported applications with URL schemes are documented here.
Unfortunately, Voice Control does not have a documented URL scheme, so it cannot be launched programmatically.