Questions tagged [siri-intent]

8 questions
3
votes
1 answer

Cannot find type __ IntentHandling in scope with for dynamic content in Custom Intent Handler

I have a WidgetKit widget with an intent handler. Currently it uses hard coded values and I'm trying to extend it to work with dynamic values. I did this successfully on another project but am struggling with this one. Here's what I've…
lewis
  • 2,936
  • 2
  • 37
  • 72
2
votes
1 answer

In WidgetKit, how do I set a default intent value from dynamic options obtained via a network call?

When a user first installs my widget, when they select "Edit Widget", I'd like a default choice to show up instead of "Choose." This is a dynamic intent and the options are retrieved from a network call. In my IntentHandler, there are two functions…
colbrew
  • 69
  • 8
2
votes
1 answer

SwiftUI: How to add CoreData record from Siri Intent

I am trying to create an Intent that saves a record to a CoreData database. The record will be created if I run the code from the main app, but not in the Intent. Here is the code: import Intents import CoreData import SwiftUI let…
iphaaw
  • 6,764
  • 11
  • 58
  • 83
1
vote
0 answers

Unable to initialize intent definition from remote Swift Package

I am building a remote package for home screen Widget. One of the things I needed to do is to add .intentdefinition file to the package. Because it seems like its not really what Apple expects you to do, I had to trigger and generate code for it…
Jared_M
  • 547
  • 1
  • 5
  • 13
0
votes
0 answers

How to Pass localstorage from cordova app to use form Siri Shortcuts

I have a native ios and android application created using Corodova + Vue. how it works is once i compile the code it builds both platforms (ios and android). so if i want to change something in the app i have to maek changes in cordova and vue…
0
votes
1 answer

How to have both Siri response and custom Siri UI View in one Siri Shortcut?

I implemented Siri Shortcuts in my app as well as Siri Custom UI handling and everything works as expected. What I'm trying to achieve now is to use both Siri Intent Response, and Siri UI response when handling the intent. Let's say that the example…
cokamotka
  • 105
  • 1
  • 6
0
votes
1 answer

Siri-Intent indicates no Shortcut, but message is not clear

I am seeing problems with my intent handler showing up in my logs that I don't understand. Here's the relevant code func addAttendee(numberToAdd: Int) -> Int { self.numberOfAttendees += numberToAdd let intent = AddAttendeeIntent() …
Michael Rowe
  • 870
  • 2
  • 11
  • 27
0
votes
0 answers

Display default choices like Instagram or WhatsApp for my intent in the Shortcut app

I'm making a shortcut intent for my app and I would be able to post a picture from my shortcut like Instagram or WhatsApp. Problem, when I click on my parameter called "Media" which type is "File" -> "Image": here it is on XCode, and it opens the…
Luigigil
  • 1
  • 1