Post

Replies

Boosts

Views

Activity

Custom error messages in Shortcuts App
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);
3
0
4.1k
Oct ’18