My Intent UI Extension are not displayed when i ask with siri

I have written a Siri Intents extension with a corresponding

IntentsUI
extension. But only the custom intent response is sayed by siri, the
IntentsUI
is not displayed.


All targets

.plist
have my CustomIntent in the
NSExtensionAttributes
IntentsSupported
array.


The

IntentUI
is displayed when i open the lockscreen siri suggestion notification, but not when i ask to siri.


I tried to add os.log in

IntentViewController
configureView()
function but nothing displayed in the console when i ask to siri.


Siri : https://imgur.com/Rva00Bm
Siri Suggestion: https://giphy.com/gifs/W3NNEuRIwrpbiAR0tb

  
 
func configureView(for parameters: Set<INParameter>, of interaction: INInteraction, interactiveBehavior: INUIInteractiveBehavior, context: INUIHostedViewContext, completion: @escaping (Bool, Set<INParameter>, CGSize) -> Void) {
  guard interaction.intent is GreenGroceryIntent else {
  completion(false, Set(), .zero)
  return
  }

  let width = self.extensionContext?.hostedViewMaximumAllowedSize.width ?? 320
  let desiredSize = CGSize(width: width, height: 300)

  completion(true, parameters, desiredSize)
}

What are the steps to make the custom UI to show, what can I check to make sure I have done this correctly ?

Thanks.

Replies

Have you tried working backwards from the complete sample code project? In particular, you should add os_log to all of your code to see what the main app, the intent extension, and the UI extension are all doing. For example, what did the intent extension do, and what response codes did it return to the system at the confirm and handle steps? Does that match up with what the sample code project does?