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

Posts under SiriKit tag

200 Posts

Post

Replies

Boosts

Views

Activity

INListCarsIntent and all new EV methods
iOS 14 introduced EV routing in the Maps app as seen in the keynote. I maintain an EV app that currently conforms to INGetCarPowerLevelStatusIntent to provide updates via Siri about car power levels, charging and range. iOS 14 introduced a lot of new methods including things like chargingFormulaArguments all of which have no documentation. I'm unable to get the maps app to suggest EV charge points when plotting routes (I'm using the example they showed in the keynote plotting a long route through California). It also introduces INListCarsIntent which I assume is supposed to be called by maps to figure out what vehicles the user might use for a journey. Again, I've implemented all the methods I can find and it's never triggered when using Maps. Is it simply the case that this functionality just flat out isn't enabled yet and doesn't work or am I doing something wrong? The complete lack of documentation is making it very hard to guess how to use these and I'd really love to get it all functioning ready for the launch of iOS 14. Any help/documentation/guidance massively appreciated here.
7
0
4k
May ’23
iOS 16.4: Siri Shortcut works within Shortcuts app, but not when activated by voice
My app has a Siri Shortcut with a single parameter that Siri asks for each time the shortcut is run (built using an intentdefinition file). The shortcut works fine when I execute it from the Shortcuts app on my phone, but beginning with iOS 16.4, when I activate it by voice, Siri prompts me for the parameter and after I respond Siri says: "Sorry, could you say that again?". If I repeat the input, it just does a web search. This issue has been reported to us by several users. I was able to reproduce the issue with the build of our app from the App Store (built with Xcode 14.2) and with a local build of the app created with Xcode 14.3. When I run the intent in the debugger, the resolution method for the parameter gets called with an empty array for the parameter and we return [INStringResolutionResult needsValue]. Then Siri asks for the input and after I respond, Siri says "Sorry, could you say that again?"and the line Program ended with exit code: 15 is printed in the console. Is anyone else running into this? Is there anything else I can do to debug this?
1
0
1.6k
Apr ’23
Not able to see iOS 15 avatar only when I release my app
I’ve faced the following issue, and shortly the notification picture does not show up with iOS 15 under some conditions. It seems that during INImage processing for INSendMessageIntent, it tries to generate an internal URL with intents-remote-image-proxy if the given source is not a remote URL. But proper URL doesn’t seem to be generated in some cases and the expected image doesn’t show up.  Here the weirdest part for me is that the problem only happens when I release my app (for example to the TestFlight), and with the XCode debug build my implementation works perfectly. [This is the error trace when I release the app] default 16:29:26.149259+0900 NotificationExt Persisting INImage for Intent Type 'INSendMessageIntent': sender image _uri: (null) default 16:29:26.149777+0900 NotificationExt Persisting INImage for Intent Type 'INSendMessageIntent': url created from image's _identifier default 16:29:26.149823+0900 NotificationExt Persisting INImage for Intent Type 'INSendMessageIntent': contentURL scheme does not match scheme 'intents-remote-image-proxy'. Attempting to get a corresponding url with 'intents-remote-image-proxy' scheme. contentURL: 'B4BBA163-2F98-AFCC-8A8D-1178AC8399B5' default 16:29:26.149869+0900 NotificationExt Persisting INImage for Intent Type 'INSendMessageIntent': Getting proxied image synchronously for content url 'B4BBA163-2F98-AFCC-8A8D-1178AC8399B5'. *** error 16:29:26.150077+0900 NotificationExt -[INImageServiceConnection synchronousServiceProxyWithErrorHandler:]_block_invoke Error (from connection <private>; pid: 0) when using image service: Error Domain=NSCocoaErrorDomain Code=4099 UserInfo={NSDebugDescription=<private>} *** error 16:29:26.150238+0900 NotificationExt Persisting INImage for Intent Type 'INSendMessageIntent': Error getting proxied image synchronously for content url 'B4BBA163-2F98-AFCC-8A8D-1178AC8399B5' error: Couldn’t communicate with a helper application. default 16:29:26.150280+0900 NotificationExt Persisting INImage for Intent Type 'INSendMessageIntent': Final contentURL 'B4BBA163-2F98-AFCC-8A8D-1178AC8399B5' to persist. Finished in: 0.000854 seconds With XCode debug build, it works perfectly with generating the proper URL with 'intents-remote-image-proxy' scheme. [This is the trace of the successful case with XCode debug build] default 18:37:38.366065+0900 NotificationExt Persisting INImage for Intent Type 'INSendMessageIntent': sender image _uri: (null) default 18:37:38.366822+0900 NotificationExt Persisting INImage for Intent Type 'INSendMessageIntent': url created from image's _identifier default 18:37:38.366879+0900 NotificationExt Persisting INImage for Intent Type 'INSendMessageIntent': contentURL scheme does not match scheme 'intents-remote-image-proxy'. Attempting to get a corresponding url with 'intents-remote-image-proxy' scheme. contentURL: 'F9EFABF4-3A8F-174A-65E3-BD5B2EBEB2AF' default 18:37:38.366920+0900 NotificationExt Persisting INImage for Intent Type 'INSendMessageIntent': Getting proxied image synchronously for content url 'F9EFABF4-3A8F-174A-65E3-BD5B2EBEB2AF'. default 18:37:38.367166+0900 NotificationExt Persisting INImage for Intent Type 'INSendMessageIntent': Final contentURL 'intents-remote-image-proxy:?proxyIdentifier=F9EFABF4-3A8F-174A-65E3-BD5B2EBEB2AF.png&storageServiceIdentifier=com.apple.Intents.INImageServiceConnection' to persist. Finished in: 0.000929 seconds Here is the part of my code snippet. let friendImg = INImage(imageData: img.jpegData(compressionQuality: 0.1)!)         let senderPerson = INPerson(             personHandle: INPersonHandle(value: nil, type: .unknown),             nameComponents: nil,             displayName: “test”,             image: friendImg,             contactIdentifier: nil,             customIdentifier: nil,             isMe: false,             suggestionType: .none         )         let intent = INSendMessageIntent(             recipients: nil,             outgoingMessageType: .outgoingMessageText,             content: nil,             speakableGroupName: INSpeakableString(spokenPhrase: “test”),             conversationIdentifier: nil,             serviceName: nil,             sender: senderPerson,             attachments: nil         )                  intent.setImage(friendImg, forParameterNamed: \.sender)                  let interaction = INInteraction(intent: intent, response: nil)         interaction.direction = .incoming         interaction.donate(completion: nil)                 do {                 content = try content.updating(from: intent) as! UNMutableNotificationContent             } catch {                 //…             } } Plus, I’ve added NSExtension → NSExtensionAttributes (dictionary) → IntentsSupported (array) → INSendMessageIntent (string) in Notification Service Extension's Info.plist I’ve Enabled the Communication Notifications capability on my main app target Any Idea on this issue? Is there anything suspected?
2
0
2.8k
Apr ’23
INImage no SVG support when using UIImage with SVG?
Hello, I am using the following code to donate interactions: INImage *image = [INImage imageWithUIImage:avatarImage]; INPerson *person = [[INPerson alloc] initWithPersonHandle:handle nameComponents:nil displayName:title image:image contactIdentifier:nil customIdentifier:nil]; Now I have switched to use SVGs in my assets (so single scale with "preserve vector data" enabled), which is working perfectly fine for UIImageView or UIButton. However, it does not work for INImages created from an SVG-UIImage. It's shows the icon, but it's blurry (so the vector data is not preserved). Am I missing something here or does INImage just not support SVGs this way?
0
0
1.2k
Apr ’23
Can an openAppWhenRun=false AppIntent do data fetching?
We are building an app to download emergency data for hospitals. We want to setup a process that allows the data to be fetched every 5 minutes or so, even though the app will almost never be opened (it's only for use in emergency situations). One idea is to expose an AppIntent, and to trigger this routinely from a Shortcuts Automation. My question is, if we have an AppIntent with openAppWhenRun=false, can we perform network requests and access the app's sandboxed filesystem, triggered by a scheduled Automation, and all without any user interaction?
1
1
876
Mar ’23
How to apple for CarPlay entitlement certificate correctly ?
Hello Everyone, I am developing an iOS app with CarPlay, I have very simple app with Siri enabled voice based messaging feature. For enabling additional capabilities in Apple Developer Account under Certificate, Identifiers and Profile Tab, we need to take approval from Apple with registering for MFI program or write about our app feature by filling a form provided by Apple. Also i am following all the guidelines of Apple CarPlay. I have applied once fews weeks back still did not hear back from them. My question is how to write to apple in correct manner about my app feature so that i can get approval of CarPlay entitlement enabled in Apple Developer portal ? Is there any particular keyword do i need to write or anything else ? Any kind of help or guidance is valuable for me. Thank you for your time. I really appreciate it.
2
1
1.8k
Mar ’23
Can we run iOS app in CarPlay simulator without CarPlay entitlement certificate
Hello Everyone, As i am new to CarPlay. I want to run my simple app with Siri enabled messaging feature app runs on CarPlay simulator without adding CarPlay entitlement certificate to my Xcode project. I understand developing for CarPlay app we need CarPlay entitlement certificate but if i want just to see how SiriKit is working in app in CarPlay. Is it possible to test or its against apple CarPlay guidelines. Any kind of feedback or answer will be acceptable and appreciable.
0
0
886
Mar ’23
tvOS Project adds Intents Extension, App Store Connect feedback "ITMS-90898: Invalid Mach-O entry point"
I'm testing the tvOS version of the development app (swiftUI), and I need to add the Intents Extension to the target to support Siri intents (INPlayMediaIntent) to play music, this is already working fine in the iOS version of the project and submitted for testing, when I compile and submit Go to App Store Connect, and then there is the following error in the feedback email: ITMS-90898: Invalid Mach-O entry point - Please make sure the build system passes “-e _NSExtensionMain” to the linker for the “MusicPlayer tvOS.app/PlugIns/TVSiriControlAudioExtension.appex” extension bundle, or the extension will not function. My project has Siri enabled, but I don't know what to do now. I tried to delete and re-create the Intents Extension without making any changes to the file, and submitted it directly to App Store Connect, but still prompted this error. Headache
2
1
1.4k
Mar ’23
How siri read messages or notification from our app in swift.
Hello Everyone, I am new to iOS development, and i need to integrate SiriKit in SwiftUI. My app feature is something like when we receive new messages on your app or as a notification message. how Siri will read for you particular message or last received notification message. I am trying to integrate SiriKit in SwiftUI but do not know exactly which function i have to write in Intent Handler or where exactly i have to mention. Please help me or if any tutorial link is available then post here. Any kind of help will be appreciable.
0
0
821
Mar ’23
Teach SFSpeechRecognizer custom words (medication names, chemistry terms, etc)
Hi, I have a question regarding the integration of the speech to text library called SFSpeechRecognizer. I need SFSpeechRecognizer to recognize terms that are not present in the iOS dictionary like medication names, chemistry terms, etc. I would have to add them, somehow, for SFSpeechRecognizer to be able to recognise them. Is this possible? Thanks
2
0
1.6k
Feb ’23
AppEntity Display Issue on Siri Shortcut with AppIntents
My Shortcut is built using the new AppIntents framework for Siri. The problem is subtitles and images on my AppEntity appear when running the shortcut in the shortcuts app, but they do not show up when running on Siri. This is a client requirement and I can't figure out how to fix this. I am using the proper DisplayRepresentation. See images below     .init(title: "\(displayString)", subtitle: "\(fullAddress)",image: imageUrl.isEmpty ? DisplayRepresentation.Image(systemName: "fork.knife.circle.fill") : DisplayRepresentation.Image(url: URL(string: imageUrl )! )) Here's how it appears in Shortcuts: Here's how it appears on SIri:
0
0
1.5k
Feb ’23
Voice-only dialog is printed when phone is muted.
I've created a custom intent for my app that reads out a list of items to the user. The same intent also provides UI through the IntentsUIExtension if the user has there phone on them. The issue I am running into is when the phone is silenced and the user has their phone on them they see the voice-only dialog printed. The dialog can be quite long which can be distracting for the user. Is there a way to only enable this as voice-only and not have the dialog printed when the phone is on mute?
0
0
882
Feb ’23
"Unknown error occurred" when running a Siri Shortcut
Hi, I've had a Siri Shortcut in my app for a while and everything was working fine. Recently, I started to get the error "Could not run xxxx, Unknown error occurred" when running that shortcut in the appstore version of my app. When I build and run my app locally, the shortcut works as expected and I can't figure out why it's not working in the Appstore/Release app. When I attach the device and run the appstore app with the Console app open, I see the following warning -[WFActionRegistry createActionsWithIdentifiers:serializedParameterArray:]_block_invoke_3 Action com.mycompany.MyApp.MySiriIntent is missing -[WFAction runWithInput:userInterface:runningDelegate:variableSource:workQueue:completionHandler:]_block_invoke_3 Action <WFHandleDonatedIntentAction: 0x7b8d48400, identifier: is.workflow.actions.sirikit.donation.handle> finished with error {domain: WFIntentExecutorErrorDomain, code: 103}. Error Domain=WFIntentExecutorErrorDomain Code=103 UserInfo={NSLocalizedDescription=<private>, WFIntentExecutorIntentResponseErrorKey=<private>, WFIntentExecutorIntentErrorKey=<private>, NSLocalizedFailureReason=<private>} I'm not sure if this is actually an issue but I do not get this second warning when running a local Debug build of the app. I double checked, and I my SiriKit and SiriUI do declare the intents in their info.plist <key>NSExtension</key> <dict> <key>NSExtensionAttributes</key> <dict> <key>IntentsSupported</key> <array> <string>MySiriIntent</string> </array> </dict> <key>NSExtensionMainStoryboard</key> <string>MainInterface</string> <key>NSExtensionPointIdentifier</key> <string>com.apple.intents-ui-service</string> </dict> <key>NSExtension</key> <dict> <key>NSExtensionAttributes</key> <dict> <key>IntentsRestrictedWhileLocked</key> <array> <string>MySiriIntent</string> </array> <key>IntentsSupported</key> <array> <string>MySiriIntent</string> </array> </dict> <key>NSExtensionPointIdentifier</key> <string>com.apple.intents-service</string> <key>NSExtensionPrincipalClass</key> <string>$(PRODUCT_MODULE_NAME).IntentHandler</string> </dict> I did not do any code changes in my Siri extensions in a while so I don't think the issue comes from a code change. Any idea what that error code 103 is? thanks for your help
0
0
1.5k
Jan ’23
Siri voice shortcuts not working on iPad
At startup of my app I call [[INVoiceShortcutCenter sharedCenter] getAllVoiceShortcutsWithCompletion: ^void(NSArray<INVoiceShortcut *> *voiceShortcuts, NSError *error) { to get the invokation phrases of the supported Siri voice shortcuts. Immediately after the call (before the completion handler is called) I get a bunch of log messages: 2023-01-09 20:32:15.415950+0100 MyAppName[11673:607994] [default] LaunchServices: store (null) or url (null) was nil: Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=264, _LSFunction=-[_LSDReadClient getServerStoreWithCompletionHandler:]} 2023-01-09 20:32:15.417786+0100 MyAppName[11673:607994] [default] Attempt to map database failed: permission was denied. This attempt will not be retried. 2023-01-09 20:32:15.418049+0100 MyAppName[11673:607994] [db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=264, _LSFunction=-[_LSDReadClient getServerStoreWithCompletionHandler:]} 2023-01-09 20:32:15.419079+0100 MyAppName[11673:607994] [default] LaunchServices: store (null) or url (null) was nil: Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=264, _LSFunction=-[_LSDReadClient getServerStoreWithCompletionHandler:]} 2023-01-09 20:32:15.419193+0100 MyAppName[11673:607994] [default] Attempt to map database failed: permission was denied. This attempt will not be retried. 2023-01-09 20:32:15.419304+0100 MyAppName[11673:607994] [db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=264, _LSFunction=-[_LSDReadClient getServerStoreWithCompletionHandler:]} Then, the completion handler is called and I receive the INVoiceShortcut instances as expected with the invokation phrase as maintained by the user. When the user wants to change the invokation phrase, I call INUIAddVoiceShortcutViewController *addShortcutCntrl = [[INUIAddVoiceShortcutViewController alloc] initWithShortcut:siriShortcut]; addShortcutCntrl.modalPresentationStyle = UIModalPresentationCurrentContext; addShortcutCntrl.delegate = self; [self presentViewController:addShortcutCntrl animated:YES completion:nil]; The Apple-provided UI comes up and I tap 'Change Voice Phrase'. I say the new phrase, it is recogized by speech recognition and immediately afterwards, it again prompts me with another peep signal to record the phrase again. I basically always have to record the phrase twice. This problem only happens on iPad. With the exact same code on iPhone everything works correctly (I also do not get the log messages above). Any ideas on how to analyse this or what might help to solve it?
0
0
1k
Jan ’23
Is INPreferences.requestSiriAuthorization required for INAddTasksIntent?
I am adding an Intents extension to my app. In the extension, I am conforming to INAddTasksIntentHandling and have implemented the handle & resolveTargetTaskList methods. Everything seems to be working without adding the Privacy - Siri Usage Description and calling INPreferences.requestSiriAuthorization. Upon resetting the simulator and re-installing the app, the first time Siri is invoked, it asks: "I'll need to access your data to do this. Is that OK?". Siri proceeds if you tap on Yes. Siri does not proceed if you tap on No. So given that Siri seems to handle this for you, is it still required to call requestSiriAuthorization and have the NSSiriUsageDescription in the plist?
0
0
870
Dec ’22
Radio Station Onboarding for Siri
I work at a community radio station that is accessible through the Music app, but Siri doesn't recognize it. Amazon has a no-code process for adding Alexa support for radio stations and I'm hoping there is something similar for Siri? Unfortunately, I can't post the URL to their article about it, but it can be located by searching for "amazon rsk onboarding." Thanks.
0
0
798
Nov ’22
INListCarsIntent and all new EV methods
iOS 14 introduced EV routing in the Maps app as seen in the keynote. I maintain an EV app that currently conforms to INGetCarPowerLevelStatusIntent to provide updates via Siri about car power levels, charging and range. iOS 14 introduced a lot of new methods including things like chargingFormulaArguments all of which have no documentation. I'm unable to get the maps app to suggest EV charge points when plotting routes (I'm using the example they showed in the keynote plotting a long route through California). It also introduces INListCarsIntent which I assume is supposed to be called by maps to figure out what vehicles the user might use for a journey. Again, I've implemented all the methods I can find and it's never triggered when using Maps. Is it simply the case that this functionality just flat out isn't enabled yet and doesn't work or am I doing something wrong? The complete lack of documentation is making it very hard to guess how to use these and I'd really love to get it all functioning ready for the launch of iOS 14. Any help/documentation/guidance massively appreciated here.
Replies
7
Boosts
0
Views
4k
Activity
May ’23
iOS 16.4: Siri Shortcut works within Shortcuts app, but not when activated by voice
My app has a Siri Shortcut with a single parameter that Siri asks for each time the shortcut is run (built using an intentdefinition file). The shortcut works fine when I execute it from the Shortcuts app on my phone, but beginning with iOS 16.4, when I activate it by voice, Siri prompts me for the parameter and after I respond Siri says: "Sorry, could you say that again?". If I repeat the input, it just does a web search. This issue has been reported to us by several users. I was able to reproduce the issue with the build of our app from the App Store (built with Xcode 14.2) and with a local build of the app created with Xcode 14.3. When I run the intent in the debugger, the resolution method for the parameter gets called with an empty array for the parameter and we return [INStringResolutionResult needsValue]. Then Siri asks for the input and after I respond, Siri says "Sorry, could you say that again?"and the line Program ended with exit code: 15 is printed in the console. Is anyone else running into this? Is there anything else I can do to debug this?
Replies
1
Boosts
0
Views
1.6k
Activity
Apr ’23
Not able to see iOS 15 avatar only when I release my app
I’ve faced the following issue, and shortly the notification picture does not show up with iOS 15 under some conditions. It seems that during INImage processing for INSendMessageIntent, it tries to generate an internal URL with intents-remote-image-proxy if the given source is not a remote URL. But proper URL doesn’t seem to be generated in some cases and the expected image doesn’t show up.  Here the weirdest part for me is that the problem only happens when I release my app (for example to the TestFlight), and with the XCode debug build my implementation works perfectly. [This is the error trace when I release the app] default 16:29:26.149259+0900 NotificationExt Persisting INImage for Intent Type 'INSendMessageIntent': sender image _uri: (null) default 16:29:26.149777+0900 NotificationExt Persisting INImage for Intent Type 'INSendMessageIntent': url created from image's _identifier default 16:29:26.149823+0900 NotificationExt Persisting INImage for Intent Type 'INSendMessageIntent': contentURL scheme does not match scheme 'intents-remote-image-proxy'. Attempting to get a corresponding url with 'intents-remote-image-proxy' scheme. contentURL: 'B4BBA163-2F98-AFCC-8A8D-1178AC8399B5' default 16:29:26.149869+0900 NotificationExt Persisting INImage for Intent Type 'INSendMessageIntent': Getting proxied image synchronously for content url 'B4BBA163-2F98-AFCC-8A8D-1178AC8399B5'. *** error 16:29:26.150077+0900 NotificationExt -[INImageServiceConnection synchronousServiceProxyWithErrorHandler:]_block_invoke Error (from connection <private>; pid: 0) when using image service: Error Domain=NSCocoaErrorDomain Code=4099 UserInfo={NSDebugDescription=<private>} *** error 16:29:26.150238+0900 NotificationExt Persisting INImage for Intent Type 'INSendMessageIntent': Error getting proxied image synchronously for content url 'B4BBA163-2F98-AFCC-8A8D-1178AC8399B5' error: Couldn’t communicate with a helper application. default 16:29:26.150280+0900 NotificationExt Persisting INImage for Intent Type 'INSendMessageIntent': Final contentURL 'B4BBA163-2F98-AFCC-8A8D-1178AC8399B5' to persist. Finished in: 0.000854 seconds With XCode debug build, it works perfectly with generating the proper URL with 'intents-remote-image-proxy' scheme. [This is the trace of the successful case with XCode debug build] default 18:37:38.366065+0900 NotificationExt Persisting INImage for Intent Type 'INSendMessageIntent': sender image _uri: (null) default 18:37:38.366822+0900 NotificationExt Persisting INImage for Intent Type 'INSendMessageIntent': url created from image's _identifier default 18:37:38.366879+0900 NotificationExt Persisting INImage for Intent Type 'INSendMessageIntent': contentURL scheme does not match scheme 'intents-remote-image-proxy'. Attempting to get a corresponding url with 'intents-remote-image-proxy' scheme. contentURL: 'F9EFABF4-3A8F-174A-65E3-BD5B2EBEB2AF' default 18:37:38.366920+0900 NotificationExt Persisting INImage for Intent Type 'INSendMessageIntent': Getting proxied image synchronously for content url 'F9EFABF4-3A8F-174A-65E3-BD5B2EBEB2AF'. default 18:37:38.367166+0900 NotificationExt Persisting INImage for Intent Type 'INSendMessageIntent': Final contentURL 'intents-remote-image-proxy:?proxyIdentifier=F9EFABF4-3A8F-174A-65E3-BD5B2EBEB2AF.png&storageServiceIdentifier=com.apple.Intents.INImageServiceConnection' to persist. Finished in: 0.000929 seconds Here is the part of my code snippet. let friendImg = INImage(imageData: img.jpegData(compressionQuality: 0.1)!)         let senderPerson = INPerson(             personHandle: INPersonHandle(value: nil, type: .unknown),             nameComponents: nil,             displayName: “test”,             image: friendImg,             contactIdentifier: nil,             customIdentifier: nil,             isMe: false,             suggestionType: .none         )         let intent = INSendMessageIntent(             recipients: nil,             outgoingMessageType: .outgoingMessageText,             content: nil,             speakableGroupName: INSpeakableString(spokenPhrase: “test”),             conversationIdentifier: nil,             serviceName: nil,             sender: senderPerson,             attachments: nil         )                  intent.setImage(friendImg, forParameterNamed: \.sender)                  let interaction = INInteraction(intent: intent, response: nil)         interaction.direction = .incoming         interaction.donate(completion: nil)                 do {                 content = try content.updating(from: intent) as! UNMutableNotificationContent             } catch {                 //…             } } Plus, I’ve added NSExtension → NSExtensionAttributes (dictionary) → IntentsSupported (array) → INSendMessageIntent (string) in Notification Service Extension's Info.plist I’ve Enabled the Communication Notifications capability on my main app target Any Idea on this issue? Is there anything suspected?
Replies
2
Boosts
0
Views
2.8k
Activity
Apr ’23
INImage no SVG support when using UIImage with SVG?
Hello, I am using the following code to donate interactions: INImage *image = [INImage imageWithUIImage:avatarImage]; INPerson *person = [[INPerson alloc] initWithPersonHandle:handle nameComponents:nil displayName:title image:image contactIdentifier:nil customIdentifier:nil]; Now I have switched to use SVGs in my assets (so single scale with "preserve vector data" enabled), which is working perfectly fine for UIImageView or UIButton. However, it does not work for INImages created from an SVG-UIImage. It's shows the icon, but it's blurry (so the vector data is not preserved). Am I missing something here or does INImage just not support SVGs this way?
Replies
0
Boosts
0
Views
1.2k
Activity
Apr ’23
Siri shortcuts doesn't work on Mac (designed for iPad)
I've created an iOS app with shortcuts one can launch with Siri and it works on an iPhone. I've added as a supported destination the Mac (designed for iPad). On the mac Siri does not recognise the shortcuts. Is there anything particular to add or is this a bug?
Replies
0
Boosts
1
Views
929
Activity
Apr ’23
INUpcomingMediaManager how to?
The INUpcomingMediaManager has only couple simple functions. But how are we supposed to test what it does or if what were doing is correct? Where are the things from setSuggestedMediaIntents supposed to be found?
Replies
0
Boosts
0
Views
781
Activity
Mar ’23
Can an openAppWhenRun=false AppIntent do data fetching?
We are building an app to download emergency data for hospitals. We want to setup a process that allows the data to be fetched every 5 minutes or so, even though the app will almost never be opened (it's only for use in emergency situations). One idea is to expose an AppIntent, and to trigger this routinely from a Shortcuts Automation. My question is, if we have an AppIntent with openAppWhenRun=false, can we perform network requests and access the app's sandboxed filesystem, triggered by a scheduled Automation, and all without any user interaction?
Replies
1
Boosts
1
Views
876
Activity
Mar ’23
How to apple for CarPlay entitlement certificate correctly ?
Hello Everyone, I am developing an iOS app with CarPlay, I have very simple app with Siri enabled voice based messaging feature. For enabling additional capabilities in Apple Developer Account under Certificate, Identifiers and Profile Tab, we need to take approval from Apple with registering for MFI program or write about our app feature by filling a form provided by Apple. Also i am following all the guidelines of Apple CarPlay. I have applied once fews weeks back still did not hear back from them. My question is how to write to apple in correct manner about my app feature so that i can get approval of CarPlay entitlement enabled in Apple Developer portal ? Is there any particular keyword do i need to write or anything else ? Any kind of help or guidance is valuable for me. Thank you for your time. I really appreciate it.
Replies
2
Boosts
1
Views
1.8k
Activity
Mar ’23
Can we run iOS app in CarPlay simulator without CarPlay entitlement certificate
Hello Everyone, As i am new to CarPlay. I want to run my simple app with Siri enabled messaging feature app runs on CarPlay simulator without adding CarPlay entitlement certificate to my Xcode project. I understand developing for CarPlay app we need CarPlay entitlement certificate but if i want just to see how SiriKit is working in app in CarPlay. Is it possible to test or its against apple CarPlay guidelines. Any kind of feedback or answer will be acceptable and appreciable.
Replies
0
Boosts
0
Views
886
Activity
Mar ’23
tvOS Project adds Intents Extension, App Store Connect feedback "ITMS-90898: Invalid Mach-O entry point"
I'm testing the tvOS version of the development app (swiftUI), and I need to add the Intents Extension to the target to support Siri intents (INPlayMediaIntent) to play music, this is already working fine in the iOS version of the project and submitted for testing, when I compile and submit Go to App Store Connect, and then there is the following error in the feedback email: ITMS-90898: Invalid Mach-O entry point - Please make sure the build system passes “-e _NSExtensionMain” to the linker for the “MusicPlayer tvOS.app/PlugIns/TVSiriControlAudioExtension.appex” extension bundle, or the extension will not function. My project has Siri enabled, but I don't know what to do now. I tried to delete and re-create the Intents Extension without making any changes to the file, and submitted it directly to App Store Connect, but still prompted this error. Headache
Replies
2
Boosts
1
Views
1.4k
Activity
Mar ’23
How siri read messages or notification from our app in swift.
Hello Everyone, I am new to iOS development, and i need to integrate SiriKit in SwiftUI. My app feature is something like when we receive new messages on your app or as a notification message. how Siri will read for you particular message or last received notification message. I am trying to integrate SiriKit in SwiftUI but do not know exactly which function i have to write in Intent Handler or where exactly i have to mention. Please help me or if any tutorial link is available then post here. Any kind of help will be appreciable.
Replies
0
Boosts
0
Views
821
Activity
Mar ’23
Teach SFSpeechRecognizer custom words (medication names, chemistry terms, etc)
Hi, I have a question regarding the integration of the speech to text library called SFSpeechRecognizer. I need SFSpeechRecognizer to recognize terms that are not present in the iOS dictionary like medication names, chemistry terms, etc. I would have to add them, somehow, for SFSpeechRecognizer to be able to recognise them. Is this possible? Thanks
Replies
2
Boosts
0
Views
1.6k
Activity
Feb ’23
AppEntity Display Issue on Siri Shortcut with AppIntents
My Shortcut is built using the new AppIntents framework for Siri. The problem is subtitles and images on my AppEntity appear when running the shortcut in the shortcuts app, but they do not show up when running on Siri. This is a client requirement and I can't figure out how to fix this. I am using the proper DisplayRepresentation. See images below     .init(title: "\(displayString)", subtitle: "\(fullAddress)",image: imageUrl.isEmpty ? DisplayRepresentation.Image(systemName: "fork.knife.circle.fill") : DisplayRepresentation.Image(url: URL(string: imageUrl )! )) Here's how it appears in Shortcuts: Here's how it appears on SIri:
Replies
0
Boosts
0
Views
1.5k
Activity
Feb ’23
Voice-only dialog is printed when phone is muted.
I've created a custom intent for my app that reads out a list of items to the user. The same intent also provides UI through the IntentsUIExtension if the user has there phone on them. The issue I am running into is when the phone is silenced and the user has their phone on them they see the voice-only dialog printed. The dialog can be quite long which can be distracting for the user. Is there a way to only enable this as voice-only and not have the dialog printed when the phone is on mute?
Replies
0
Boosts
0
Views
882
Activity
Feb ’23
"Unknown error occurred" when running a Siri Shortcut
Hi, I've had a Siri Shortcut in my app for a while and everything was working fine. Recently, I started to get the error "Could not run xxxx, Unknown error occurred" when running that shortcut in the appstore version of my app. When I build and run my app locally, the shortcut works as expected and I can't figure out why it's not working in the Appstore/Release app. When I attach the device and run the appstore app with the Console app open, I see the following warning -[WFActionRegistry createActionsWithIdentifiers:serializedParameterArray:]_block_invoke_3 Action com.mycompany.MyApp.MySiriIntent is missing -[WFAction runWithInput:userInterface:runningDelegate:variableSource:workQueue:completionHandler:]_block_invoke_3 Action <WFHandleDonatedIntentAction: 0x7b8d48400, identifier: is.workflow.actions.sirikit.donation.handle> finished with error {domain: WFIntentExecutorErrorDomain, code: 103}. Error Domain=WFIntentExecutorErrorDomain Code=103 UserInfo={NSLocalizedDescription=<private>, WFIntentExecutorIntentResponseErrorKey=<private>, WFIntentExecutorIntentErrorKey=<private>, NSLocalizedFailureReason=<private>} I'm not sure if this is actually an issue but I do not get this second warning when running a local Debug build of the app. I double checked, and I my SiriKit and SiriUI do declare the intents in their info.plist <key>NSExtension</key> <dict> <key>NSExtensionAttributes</key> <dict> <key>IntentsSupported</key> <array> <string>MySiriIntent</string> </array> </dict> <key>NSExtensionMainStoryboard</key> <string>MainInterface</string> <key>NSExtensionPointIdentifier</key> <string>com.apple.intents-ui-service</string> </dict> <key>NSExtension</key> <dict> <key>NSExtensionAttributes</key> <dict> <key>IntentsRestrictedWhileLocked</key> <array> <string>MySiriIntent</string> </array> <key>IntentsSupported</key> <array> <string>MySiriIntent</string> </array> </dict> <key>NSExtensionPointIdentifier</key> <string>com.apple.intents-service</string> <key>NSExtensionPrincipalClass</key> <string>$(PRODUCT_MODULE_NAME).IntentHandler</string> </dict> I did not do any code changes in my Siri extensions in a while so I don't think the issue comes from a code change. Any idea what that error code 103 is? thanks for your help
Replies
0
Boosts
0
Views
1.5k
Activity
Jan ’23
Siri voice shortcuts not working on iPad
At startup of my app I call [[INVoiceShortcutCenter sharedCenter] getAllVoiceShortcutsWithCompletion: ^void(NSArray<INVoiceShortcut *> *voiceShortcuts, NSError *error) { to get the invokation phrases of the supported Siri voice shortcuts. Immediately after the call (before the completion handler is called) I get a bunch of log messages: 2023-01-09 20:32:15.415950+0100 MyAppName[11673:607994] [default] LaunchServices: store (null) or url (null) was nil: Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=264, _LSFunction=-[_LSDReadClient getServerStoreWithCompletionHandler:]} 2023-01-09 20:32:15.417786+0100 MyAppName[11673:607994] [default] Attempt to map database failed: permission was denied. This attempt will not be retried. 2023-01-09 20:32:15.418049+0100 MyAppName[11673:607994] [db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=264, _LSFunction=-[_LSDReadClient getServerStoreWithCompletionHandler:]} 2023-01-09 20:32:15.419079+0100 MyAppName[11673:607994] [default] LaunchServices: store (null) or url (null) was nil: Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=264, _LSFunction=-[_LSDReadClient getServerStoreWithCompletionHandler:]} 2023-01-09 20:32:15.419193+0100 MyAppName[11673:607994] [default] Attempt to map database failed: permission was denied. This attempt will not be retried. 2023-01-09 20:32:15.419304+0100 MyAppName[11673:607994] [db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=264, _LSFunction=-[_LSDReadClient getServerStoreWithCompletionHandler:]} Then, the completion handler is called and I receive the INVoiceShortcut instances as expected with the invokation phrase as maintained by the user. When the user wants to change the invokation phrase, I call INUIAddVoiceShortcutViewController *addShortcutCntrl = [[INUIAddVoiceShortcutViewController alloc] initWithShortcut:siriShortcut]; addShortcutCntrl.modalPresentationStyle = UIModalPresentationCurrentContext; addShortcutCntrl.delegate = self; [self presentViewController:addShortcutCntrl animated:YES completion:nil]; The Apple-provided UI comes up and I tap 'Change Voice Phrase'. I say the new phrase, it is recogized by speech recognition and immediately afterwards, it again prompts me with another peep signal to record the phrase again. I basically always have to record the phrase twice. This problem only happens on iPad. With the exact same code on iPhone everything works correctly (I also do not get the log messages above). Any ideas on how to analyse this or what might help to solve it?
Replies
0
Boosts
0
Views
1k
Activity
Jan ’23
Is INPreferences.requestSiriAuthorization required for INAddTasksIntent?
I am adding an Intents extension to my app. In the extension, I am conforming to INAddTasksIntentHandling and have implemented the handle & resolveTargetTaskList methods. Everything seems to be working without adding the Privacy - Siri Usage Description and calling INPreferences.requestSiriAuthorization. Upon resetting the simulator and re-installing the app, the first time Siri is invoked, it asks: "I'll need to access your data to do this. Is that OK?". Siri proceeds if you tap on Yes. Siri does not proceed if you tap on No. So given that Siri seems to handle this for you, is it still required to call requestSiriAuthorization and have the NSSiriUsageDescription in the plist?
Replies
0
Boosts
0
Views
870
Activity
Dec ’22
Siri suggestion notification
Hi I think Siri is being developed. I think it is very wrong to display every action as a notification (like a photo) as a suggestion. I think it would be better to fix this and show it in the shortcuts area. Beta ios 16.2 has arrived and ios 16.3 is still in progress. best regards
Replies
0
Boosts
0
Views
1.4k
Activity
Dec ’22
data partnership with the Maps team
Hello, We are trying to add Reservations for restaurants in apple maps, but we found out we need data partnership with the Maps team, how can we reach them to do it. Please let us know Regards
Replies
0
Boosts
0
Views
933
Activity
Nov ’22
Radio Station Onboarding for Siri
I work at a community radio station that is accessible through the Music app, but Siri doesn't recognize it. Amazon has a no-code process for adding Alexa support for radio stations and I'm hoping there is something similar for Siri? Unfortunately, I can't post the URL to their article about it, but it can be located by searching for "amazon rsk onboarding." Thanks.
Replies
0
Boosts
0
Views
798
Activity
Nov ’22