292 questions
0
votes
0
answers
27
views
Swift Siri AppIntent - Handle Response with initial command with parameters
I want to say something in one shot like: "Start my intent that does command xyz"
It currently breaks it down into 2 separate steps, where I have to specify "Start my intent" first ...
1
vote
0
answers
45
views
how to set a temperature for Thermostat or AC devices by using Siri voice command directly?
I'm not using HomeKit, directly I want to set temperature of a AC or Thermostat devices by using Siri voice command like 'Hay Siri, Set Thermostat temperature 25 degree'. Here I'm successfully ...
2
votes
0
answers
60
views
How do I use the resolvers API from the App Intents Framework, like struct DoubleFromStringResolver?
I am working on App Intents, Shortcuts, and Siri on iOS. It seems that Siri delivers Strings, what I would need is a Double.
I found that there is a Resolvers API within the App Intents Framework.
...
0
votes
0
answers
20
views
What is the correct syntax to continue in app for custom intent?
I have a custom intent. When my app is unable to complete the resolution of a parameter within the app extension, I need to be able to continue within the app. I am unable to figure out what the ...
0
votes
1
answer
51
views
Styling of shortcuts in iOS Shortcuts app
I'm providing some shortcuts to the system for my app via AppShortcutsProvider. This seems to work in general, but they look quite different from the entries of other apps (compare below screenshots).
...
0
votes
0
answers
22
views
How can you create a Siri shortcut that opens an App and a URL either in split screen or the App in full screen and the URL in slide over?
I can’t get this to work on my iPad. Looking for someone’s expertise to help.
I followed instructions that I found online but I didn't understand how to use variables. I was supposed to use variables ...
0
votes
0
answers
40
views
`AppIntent`, should I donate them manually?
Should I donate an custom AppIntent instance that I have to the system using the donate() API.
For example:
User adds a note in an app (there is an custom AppIntent that performs that job)
Should I ...
1
vote
0
answers
74
views
App Shortcut Not Appearing When Using Parameter in Phrase
Why doesn't my App Shortcut appear in Shortcuts when using a parameter, but it works when I remove the parameter?
class AppShortcuts: AppShortcutsProvider {
static var appShortcuts: [AppShortcut] {...
2
votes
0
answers
117
views
Siri Intent Dialog with custom SwiftUIView not responding to buttons with intent
I have created an AppIntent and added it to shortcuts to be able to read by Siri. When I say the phrase, the Siri intent dialog appears just fine. I have added a custom SwiftUI View inside Siri dialog ...
0
votes
0
answers
11
views
How to show third-party app user information in Siri share suggestions?
When using the system share sheet, I see a row of user-specific sharing suggestions for third-party apps beneath the main share options. How can I programmatically add users from my app to this ...
0
votes
1
answer
523
views
How to Set Custom Icon for iOS App Shortcut?
How to add shortcuts to my app or to custom section inside my app ?
Like Phone app when you use iOS search (Spotlight) and type phone you will get phone app and most called contacts for example.
Or ...
0
votes
0
answers
90
views
Combine NSPredicate and SwiftData Predicate for iOS AppIntent (Shortcuts) EntityPropertyQuery
Happy New Year, all!
I'm trying to migrate my CoreData app to SwiftData. Prior to the migration, the Siri Shortcut's EntityPropertyQuery worked just fine, but now I'm struggling how to combine the [...
0
votes
1
answer
131
views
Use Swift AppIntents/Shortcuts with SwiftData for Siri to prompt for multiple new record fields. Save the record to with the user responses
I am trying to setup Shortcuts and AppIntents to allow a user to summon Siri and open a dialog to create a new record with two or more SwiftData model attributes. I have successfully coded for Siri to ...
0
votes
1
answer
137
views
Swift AppIntents and Shortcuts Do Not Work when Attempting to Navigate to a Different View
I'm struggling to understand how to implement AppIntents and Shortcuts in an iOS app. I am able to add a shortcut for opening the app in the following code as OpenThing.swift. After adding the ...
1
vote
2
answers
485
views
How do I Donate App Intent to the shortcuts app?
I have a react native app but right now I am mainly focused on the iOS module.
First I created an intent using an intent definition file but then I decided to convert this to an app intent.
Overall it ...
-1
votes
1
answer
48
views
Create Siri UserActivities for swiftUI vpn app to connect/disconnect vpn
i im currently developing vpn app and i want to add siri shortcuts for users so that for example when user enters youtube - my vpn appExtension disconnects vpn or connects it depending on what ...
5
votes
1
answer
344
views
Flutter Siri Integration: App not launching and navigating to page
I have a Flutter application where I use GetX for state management. In the project, I want to integrate Siri. When I say "Open Homework MyApp" to Siri, I want the app to open and navigate to ...
1
vote
0
answers
82
views
Append AppShortcut Conditionally in AppShortcutProvider
I have created an AppShortcutsProvider containing a list of AppShortcuts. Is it possible to add shortcuts to this list conditionally? Or, can I add new shortcuts when an action is completed so that ...
0
votes
1
answer
297
views
How to create a SIRI shortcut programmatically that triggers a phone call with the Phone app?
I'm aware that we can create shortcuts programmatically to our own app with the INUIAddVoiceShortcutViewController. I did that, it works, that's fine.
But I would like now to automate the creation of ...
1
vote
0
answers
93
views
For an iOS AppIntent, is it possible to return a URL to a file within the app's sandbox?
AppIntents can return IntentResults of varying types. One of the supported types is a URL. I would like to be able to use the URL to a file within the app's sandbox and return this as an IntentResult ...
0
votes
1
answer
339
views
Siri not recognizing the parameter in the phrase
I'm developing an iOS app using the App Intents framework. I've created an 'OpenShowIntent' that should allow users to open a show from outside the app by either:
Invoking a shortcut and providing a ...
1
vote
0
answers
102
views
CLLocationManager in AppIntent
I am working on an iOS application for hitchhikers to document their trips. It would be quite convenient to have an iOS Shortcut for creating a record for both pickup and dropoff locations. I am using ...
1
vote
1
answer
203
views
Siri only uses first App Shortcut defined
Using App Shortcuts with app intents, Siri only responds to the first shortcut defined in the app shortcut below.
struct MementoShortcuts: AppShortcutsProvider {
@AppShortcutsBuilder
static ...
1
vote
0
answers
147
views
How can I Retrieve Notion Note URLs in an Apple Shortcut?
I'm struggling to get the Url into my database notion. Here is one of the 400 i get :
{"status":400,"object":"error","code":"validation_error","...
-1
votes
1
answer
156
views
Display Siri Shortcuts programs in a picker - Swift (macOS)
I'm developing a Swift application for macOS.
I would like it to be able to interact with the user's shortcuts (block programs in the Shortcuts application, fig. 1). But I can't locate them...
Do you ...
1
vote
1
answer
464
views
Creating Siri Shortcut AppIntent with custom AppEntity leads to repeated asking for input
I am developing an app with SwiftUI and would like to provide my own Siri shortcuts. I have created my own AppEntities for this. Unfortunately, I can't get the shortcut to work: Whenever I select an ...
0
votes
1
answer
390
views
Appintent and SwiftData
I'm new to Swift development and I am encountering an issue that I believe may be due to an error on my part.
I have two questions regarding the following code:
import AppIntents
import SwiftUI
import ...
1
vote
1
answer
370
views
Hide LiveActivityIntent Button from Shortcuts App
I'm using LiveActivityIntent in the following way to add interactive buttons to my Live Activity:
struct Test: LiveActivityIntent {
static var title: LocalizedStringResource = "Test"...
2
votes
1
answer
1k
views
How to use and test Wallet Transaction Shortcut in iOS Simulator?
The Shortcuts app offers the possibility to trigger shortcuts/intends when a wallet credit card is used and a new transaction is created.
I would like to add transaction details to one of my apps and ...
1
vote
1
answer
469
views
Is it possible to launch a dialog directly from a widget through AppIntent? (IOS 17)
I'm currently following a tutorial to develop an iOS interactive widget. Basically, in my widget, I want to have a button that users can tap on to record a number. Ideally, I would like it to prompt ...
1
vote
0
answers
510
views
Resolving ITMS-90626 Errors for Localized Custom Intent Titles and Descriptions in Xcode
I'm facing an issue with Apple's intentdefinition file while adding a new intent for Shortcuts integration in my app.
As you can see from the screenshot below, I've filled out the Title and ...
5
votes
0
answers
300
views
Shortcuts app for my appintent in flutter plugin?
I refer to having the App Intents looking like these widgets inside the Shortcuts app. Is that possible or only reserved for Flutter Plugin and Flutter Apps?
Integrate Siri shortcuts AppIntents in ...
0
votes
1
answer
319
views
Return first calendar event of each day in a chosen period
I’m building an iOS shortcut that finds all events in a specified calendar for a chosen time period (start and end date). The result is then iterated through each event with a few actions that ...
6
votes
0
answers
1k
views
Opening an App Conditionally with Swift and App Intents in iOS Shortcuts
I am trying to create a simple app that "blocks" other apps if a certain condition is not met. I am currently using the IOS shortcuts and have set up an automation that opens my app A ...
0
votes
1
answer
1k
views
How to trigger a function from an App Intent
I created an app that fetches bike parking spots around me. In the app, every thing works perfectly.
Now, I'm trying to create a shortcut that triggers the fetching of the parking spots. Unfortunately,...
0
votes
1
answer
2k
views
Apple shortcuts automation for appending to note
I am attempting to create an apple automation shortcut in the Apple shortcuts app to do the following
to do the following: Basically I would like to append to a note every day to keep track of my ...
3
votes
1
answer
780
views
AppIntents issue when importing UIKit and using an Image for caseDisplayRepresentations of AppEnum
I’m creating a simple AppIntents Shortcut that requires UIKit to open a URL in my app. Though, once I add the import UIKit to my file, Xcode shows me the following warning at the ...
1
vote
0
answers
244
views
Get data from AppIntent when parent app is opened from Spotlight in Swift
I have an AppIntent that is provided as a shortcut and allows the user to open the app from Spotlight in iOS 17. When the shortcut is run, it opens the app with:
static let openAppWhenRun: Bool = true
...
0
votes
1
answer
492
views
Markdown support suddenly broken (Apple Shortcuts MacOS) after Xcode uninstall
I recently installed the newest version of MacOS and also uninstalled Xcode and its CLI tools. Because the uninstallation process was quite messy (I had to alter zsh profile and reinstall Python since ...
10
votes
0
answers
877
views
iOS/Apple AppIntent Is it possible to dynamically chain different AppIntents with OpensIntent?
With iOS/Apple AppIntents, your iOS app can declare AppIntents, which users can use from the Shortcuts App to use as steps in their own manually/Siri/etc triggered Shortcuts, but also from their own ...
2
votes
1
answer
205
views
"Find X" Action with Filter Option Accepting Dynamic AppEntity
I’m trying to extend my „Find XYZ“ action of my Reading-AppEntity to accept filtering for another Meter-AppEntity type. So basically I want to get all elements that have a Core Data relationship to ...
4
votes
1
answer
550
views
How to have a widget-like entry in the Shortcuts app for my App Intents in iOS?
I refer to having the App Intents looking like these widgets inside the Shortcuts app. Is that possible or only reserved for Apple apps?
I thought it would be enough adding a shortTitle and ...
8
votes
2
answers
1k
views
Parameterized App Shortcut isn’t showing up correctly in Spotlight (iOS 17)
I’m working on supporting iOS 17’s new Shortcuts features. I have a multiple App Shortcuts including one that launches the app in a selected tab. The tab selection is done via a custom AppView enum ...
0
votes
1
answer
270
views
Custom group/category for the „Find Entity“ actions
I’ve seen that some of Apple’s apps group the automatically generated "Find XYZ" actions into custom categories. For example Safari, Calendar, or Reminders do this.
I know that you can group ...
3
votes
1
answer
460
views
Core Data fetch in AppIntent is crashing when app is running in background
I’m building an AppIntent Shortcut and want to perform fetch requests of my apps Core Data to feed the Shortcut with the data.
My Code
Core Data Handling:
class HomesHandler: NSObject, ...
1
vote
2
answers
2k
views
Is it possible to write custom .shortcut file for iOS Shortcuts application?
Why?
I have REST API service where user can place marks on any day of the year. There is Endpoint (URL) that allows user to place mark on current day, for example POST request to /api/mark/1
So, I ...
2
votes
0
answers
191
views
Swift AppIntent Parameters. How to trap errors?
I have a very simple AppIntent but Siri is easily confused when capturing parameters and responds with "Something went wrong" then silently terminates the process - how do I see the error ...
0
votes
0
answers
141
views
How to detect macOS Shortcuts cancellation in an AppIntent perform()?
I'm testing with this simple AppIntent that only counts from 1 to 10 each second.
import AppIntents
struct Loop10SecCount: AppIntent {
static var title: LocalizedStringResource = "Loop 10 ...
0
votes
0
answers
710
views
App Intents @Parameter with one-sided inclusive range (no upper bound)
I want to define an AppIntent/Shortcut with a number @Parameter (of type double) that has a defined range. The range should be one-sided to only include positive numbers. Basically like the Swift ...
3
votes
0
answers
720
views
iOS 16 Swift App Intents - Phrases Not Working as Expected
I have defined custom App Intents using the new App Intent framework provided in iOS 16. However, not all of these phrases seem to work for Siri. Sometimes it will open another app or will perform a ...