Handle requests for your app’s services from users using Siri or Maps.

SiriKit Documentation

Posts under SiriKit tag

131 results found
Sort by:
Post not yet marked as solved
89 Views

Update Intent String won't work

I'm developing a widget for our App with custom provided values from type INObject. When the companion App updates a string in our database the same string is updated in our Widget UI via ReloadAllTimeLines(). This works fine. But this String is not updated when it is shown to the user during the selection of our dynamically provided values while editing the Widget. The old name before renaming is shown. Are there any possibilities to update the old Intent displayString. I have tried to set it in the getTimeline Method but this not working.
Asked Last updated
.
Post not yet marked as solved
90 Views

Trying to implement Siri Shortcuts with Intents.. Need some clarification

Hello, I am working on a small app to easily create time relative reminders. Meaning I can quickly create reminder that will remind me about something after 45 minutes from now.. I want to add configurable shortcuts, so users can use this app via Siri and the Shortcuts app. I have created the Intents.intentdefinition file and it's (so far one) shortcut correctly displays in the Shortcuts app with the parametrs. But I am unsure how should I now handle it? Some tutorials and docs mention the delegate methods in SceneDelegate while others point to Intents Extension which is supposed to handle the shortcut? swift override func restoreUserActivityState(_ activity: NSUserActivity) { } This shortcut what I want does not need more user interaction than just providing the two input parameters. So the simplest way to handle that would be nice. Ideally if that work could happen in background without opening my app? Because after the reminder is added, there is nothing to do in my app. Is that possible?
Asked
by nemecek_f.
Last updated
.
Post not yet marked as solved
275 Views

Getting data from async-storage and pass it to swift in xcode

Hi, I am quite new to the iOS world, and I am working in an already created weather project, where the app is written in react-native, and data about the location is stored in @react-native-community/async-storage, and I need to get that local stored data, and pass it to the widget that I have written in Swift. Is it possible? Or should I just use google api and get the location independently from the app, and make it a configurable widget with intent and dynamic provided options? Or can you suggest me other ideas about setting the location of a weather app?
Asked Last updated
.
Post not yet marked as solved
107 Views

HomePod mini is spoken by the printed dialog not voice-only dialog (SiriKit)

I have checked siri voice responses using HomePod mini. I have some issues about intents.intentdefinition. Do you know what the expected behavior of the iOS SDK(iOS spec) is? Cannot define result response string containing parameters(dynamic value) in the Printed dialog. if it includes parameters, will ignores defined printed dialog string. In HomePod mini, Siri is spoken with defined Printed dialog strings. In documents, it is written as follows The voice-only dialog is spoken instead of the printed dialog in circumstances where the user is not looking at a screen, such as on HomePod, CarPlay, and AirPods. https://developer.apple.com/documentation/sirikit/adding_user_interactivity_with_siri_shortcuts_and_the_shortcuts_app Any recommendations are welcome!!!
Asked
by kyecheol.
Last updated
.
Post not yet marked as solved
362 Views

INInteraction.donate always returns 1901 error on watchOS 7

Could you take a look please why INInteraction.donate always returns the following error on watchOS 7? Interaction donation failed: The operation couldn’t be completed. (IntentsErrorDomain error 1901. The error reproduces on the official example Soup Chef: Accelerating App Interactions with Shortcuts - https://developer.apple.com/documentation/sirikit/soup_chef_accelerating_app_interactions_with_shortcuts. It works properly on iOS but doesn't on watchOS. (Simulator and real devices)
Asked Last updated
.
Post not yet marked as solved
717 Views

Custom siri intent ignores dialogs in some languages

My custom siri intent works perfectly on base localization unfortunately not so if I change the siri language to one of my supported languages.Siri does not call out my provided dialogs such as the "Parameter Confirmation" dialog if the siri language is set to german for example.Expected: Just to confirm, you wanted Auto mode ?Actual behavior: Confirm modeswhere modes is the name of the enum defined in the intentdefinition file.I localized the siri intents for all my supported languages.What I tried so far:Reinstall the appDeleted the localization for the intent definition file and localized the intents againUpdated iOS, macOS as well as Xcode to the latest versionsHope someone can help me with that problem.Big thanks in advance!
Asked Last updated
.
Post not yet marked as solved
184 Views

Share extension not showing my own contact(message) app

I would like to share the photos in Photo application. Just like iMessage and messenger of Facebook, the suggestion list shows the recently contact list. I tried to add share extension and I can find my message app in suggested list below. BUT there is no recent contact list shown above. Just follow the following link - https://developer.apple.com/documentation/foundation/app_extension_support/supporting_suggestions_in_your_app_s_share_extension?language=objc documentation. Does anybody know how to make message app shown in suggestion list? If you want to know what I confused. Open your Photo and share one or more photos via iMessage Go to Setting Siri and Search Turn off "Suggestions when Sharing" Back to Photo application and the suggestion list has disappeared.
Asked Last updated
.
Post not yet marked as solved
109 Views

Send a message using sirikit

I want to send a message using Sirikit, but it doesn't work with the app name specified in Bundle display name App name: 農家の知恵
Asked
by ueoka.
Last updated
.
Post not yet marked as solved
119 Views

SiriKit System default Intents

I added some siri default intents and noticed that they tend to call the system's default apps rather than my app instead. By adding "in my app name" to the end of the invocation phrase it seems to work (at least sometimes. But it still is quite unpredicable and siri often confuses "in my app name" with the content of the invocation. I have two questions that hopefully can be answered by someone more experienced with siri than me: 1) is this "normal" behaviour or are there techniques to improve this? Like setting a default app for handling an intent or such? 2) is it always required to add the "in my app name" phrase? 3) will siri get used to it by time? The current performance is not even close to anything I would like to have a customer to deal with :/ Maybe that also has an impact, I'm currently testing in german. When testing in english it feels slightly better. Thanks for any helful hint / direction!
Asked
by MNTC.
Last updated
.
Post not yet marked as solved
580 Views

"No options were provided for this parameter" in Edit Widget menu

I had to create a separate thread for the problem I'm facing with WidgetKit. Environment: Xcode 12.0.1 iOS 14.0 App targeting iOS 10 Widget targeting iOS 14 Intents Extension targeting iOS 10 • I have created Intents Extension. • Created Intents Definition file in Widget target, added it to all the three targets (app, widget, intents extension).  • Declared conformance to the intent handling protocol in IntentHandler (Intents Extension). • Set up Intent Timeline Provider in Widget target.  • Added Siri to the app capabilities. If I go to Edit widget -> tap on a dynamic option it says: No options were provided for this parameter. Intents Extension provides data, but I'm not sure how iOS wires the Intents Extension and widget. From what I see I'm sure that my code inside IntentsHandler.swift is never called.
Asked
by Jauzee.
Last updated
.
Post not yet marked as solved
451 Views

ITMS-90626: Invalid Siri Support

Hello, i got this mail after upload my binary. /* Dear Developer, We identified one or more issues with a recent delivery for your app. Your delivery was successful, but you may wish to correct the following issues in your next delivery: ITMS-90626: Invalid Siri Support - Localized title for custom intent: 'Configuration' not found for locale: pl ITMS-90626: Invalid Siri Support - Localized title for custom intent: 'Configuration' not found for locale: es ITMS-90626: Invalid Siri Support - Localized title for custom intent: 'Configuration' not found for locale: da ITMS-90626: Invalid Siri Support - Localized title for custom intent: 'Configuration' not found for locale: ru ITMS-90626: Invalid Siri Support - Localized title for custom intent: 'Configuration' not found for locale: tr ITMS-90626: Invalid Siri Support - Localized title for custom intent: 'Configuration' not found for locale: el ITMS-90626: Invalid Siri Support - Localized title for custom intent: 'Configuration' not found for locale: nl ITMS-90626: Invalid Siri Support - Localized description for custom intent: 'Configuration' not found for locale: en ITMS-90626: Invalid Siri Support - Localized title for custom intent: 'Configuration' not found for locale: fr ITMS-90626: Invalid Siri Support - Localized title for custom intent: 'Configuration' not found for locale: nb ITMS-90626: Invalid Siri Support - Localized title for custom intent: 'Configuration' not found for locale: pt ITMS-90626: Invalid Siri Support - Localized title for custom intent: 'Configuration' not found for locale: sv ITMS-90626: Invalid Siri Support - Localized title for custom intent: 'Configuration' not found for locale: de ITMS-90626: Invalid Siri Support - Localized title for custom intent: 'Configuration' not found for locale: cs ITMS-90626: Invalid Siri Support - Localized title for custom intent: 'Configuration' not found for locale: it After you’ve corrected the issues, you can upload a new binary to App Store Connect. Best regards, The App Store Team / My App SiriKit Intent has only de and en localization files. The en and de localization strings are fully filled. What's the problem ???
Asked
by JBleyel.
Last updated
.
Post not yet marked as solved
601 Views

Dynamic Intent Selection not Generating Handling Class for Widget?

I am trying to build my first Widget, and am following the guidance in the Making a Configurable Widget - https://developer.apple.com/documentation/widgetkit/making-a-configurable-widget article. After confirming the default Widget runs successfully, I am trying to set up my Intent Definition and Intent Handler. I have taken the following steps; Created a new intent definition file, with the custom intent's category as View, eligibility for Widgets, and the parameter set to a custom type while selecting Options are provided dynamically. Created a new Intent Handler target, and set the Supported Intent's class name to something relevant, such as SelectCharacterIntent. The article implies that the newly created IntentHandler.swift file, which has an IntentHandler class, should be able to have that class extended to the intent definition file, as noted; Based on the custom intent definition file, Xcode generates a protocol, SelectCharacterIntentHandling, that the handler must conform to. Add this conformance to the declaration of the IntentHandler class. However, my project immediately reports that it Cannot find type 'SelectCharacterIntentHandling' in scope. I am unsure if I am doing something wrong, but it seems peculiar that the SelectCharacterIntentHandling protocol is created/implemented without me being aware. Surely, there must be a step to take to have that protocol created so I can extend my IntentHandler class to support my dynamic intent. Thank you!
Asked Last updated
.
Post not yet marked as solved
150 Views

How to Limit Selectable Siri Intent Distance Units to km/mi

I've added a Siri Intent to configure some widgets for an iOS app. For the parameter in question I used the "Distance" type, which is adequate as the user can add a distance goal, which should be either km or miles (that's why I can't only specify km or miles). However when in the widget configuration view all available distances are shown, even the most obscure. I can't seem to find any way to limit the available options to km or miles. What am I missing?
Asked Last updated
.
Post not yet marked as solved
265 Views

Interaction donation fails

I have just gotten started working with intents and donating them after I got help - https://developer.apple.com/forums/thread/673701 figuring out how to make them work. Now, I'm getting an unknown error when trying to donate my INInteraction: swift let interaction = INInteraction(intent: drink.intent, response: nil) interaction.identifier = drink.id.uuidString interaction.donate(completion: { error in if error != nil { if let error = error as NSError? { print("Interaction donation failed: ", error) } } else { print("Successfully donated interaction") } }) The error I'm getting is: Interaction donation failed:  Error Domain=IntentsErrorDomain Code=1901 "(null)" UserInfo={NSUnderlyingError=0x600001a97ed0 {Error Domain=CSIndexErrorDomain Code=-1003 "(null)"}} I've been searching a lot without success. What's going on here?
Asked Last updated
.
Post not yet marked as solved
162 Views

Custom intent is having issues with handling user's answer with Siri

Hello, I am trying to integrate Siri with Custom intent. My requirement is to Ask Questions to users and Whatever user will answer, I have to save them in database. I followed all the steps given in ducumentation, everything is working fine, but I am not able to capture answers of the users. What can I do for this?
Asked Last updated
.