Posts

Post not yet marked as solved
2 Replies
3.8k Views
Honestly I'm not quite sure where to search for, or how to get technical support for the new Shortcuts app. Basically, I'm wondering if the Shortcuts app supports custom error messages.My app has a custom intent, and if certain conditions aren't met it will respond with an error.When I trigger the shortcut directly from Siri, the error is shown (as expected) in the response: "Hmm, something went wrong. <App Name> says, "<My Error Message>".However, if I trigger the shortcut from the Shortcuts app, I just receive an alert saying "An unknown error occured" with no further details.Is this a bug or am I constructing my error response in some way that the Shortcuts app cannot understand:URActionIntentResponse* response = [[URActionIntentResponse alloc] initWithCode:URActionIntentResponseCodeFailure userActivity:nil]; response.error = @"Foobar"; self.completion(response);
Posted
by pqvst.
Last updated
.