Disable AppIntent for iPadOS

My application is being supported by both iOS and iPadOS platforms. I would like to add AppIntents only on iOS and not on iPadOS. I have not found any blogs related to it. Is it possible? If so, May I know how can we do it?

If not, what is the best practice to avoid showing Siri shortcuts on iPad.

I would like to add AppIntents only on iOS and not on iPadOS

That's not possible. As part of the build process, metadata about your App intents is statically extracted from your built app, so there's no differentiation at build time for the difference between iOS and iPadOS. At the end of the build, you have one binary for your code for both iOS and iPadOS, and so you have one set of statically extracted app intent metadata too.

If not, what is the best practice to avoid showing Siri shortcuts on iPad.

What is preventing you from offering your intents on iPadOS?

— Ed Ford,  DTS Engineer

Disable AppIntent for iPadOS
 
 
Q