M-Swift All articles
Testing & Tooling

The Automation Nobody Finds: Auditing App Intents Before They Gather Dust

M-Swift

You shipped App Intents. You told the team it was a real feature. Then the analytics came back flat — not because people tried the shortcuts and bailed, but because almost nobody found them in the first place. App Intents are a product surface now, and like any surface, they need an audit before they gather dust.

The phrase list is your storefront

Start with AppShortcutsProvider. Those phrases are what Siri hears and what the Shortcuts app surfaces. If they sound like they were written by a compiler, users won't say them out loud. Read every phrase as if you were in a car with the windows down, not typing into a search field.

Ask a few honest questions. Does the phrase include the app name naturally? Does it collide with a system phrase or a competitor's shortcut? Would a normal person actually say it, or does it sound like a voice-command parody? Test with dictation on a real device, in a normal room, not just by typing into the Shortcuts search bar. Siri is a different input channel, and it flunks phrases that look fine on paper.

Entity queries are where shortcuts quietly disappear

A shortcut can exist in code and still vanish from the Shortcuts app because its entity query returns nothing useful. That's the silent failure point. Audit your EntityQuery with real data sizes — not the three sample records on your simulator.

Check the default result set. Check suggested entities. Check what happens after first launch, after a sync, and while offline. If the query takes too long or returns an empty list, users see a dead end and assume your app is broken. Add temporary logging around result counts and query duration, then remove it before ship. Better yet, write a test that seeds a realistic store and asserts that the query returns the entities a person would expect.

Parameter validation should explain, not shrug

Shortcuts users hit parameter errors in a UI you don't control. The error message they see is often the only explanation they get. If your validation method returns a generic failure, you've turned a fixable problem into a support ticket.

Audit every parameter resolution path. What happens when the user picks a deleted project? What happens when a required permission is missing? What happens when authentication is canceled halfway through? Make the failure actionable: tell them what to select, what to enable, or what to try next. Then test those paths on a device, not just in unit tests, because the Shortcuts app wraps your errors in its own presentation layer.

Spotlight indexing is not a freebie

If your app exposes indexed entities, verify that Spotlight actually sees them. App Intents can donate entities to Spotlight, but indexing is not automatic just because you wrote the intent. Check the index after a fresh install, after a data migration, and after the user deletes and recreates content.

Search Spotlight on a real device for the entity name. If it doesn't show up, don't assume the index is broken — check your indexing calls, your entity identifiers, and whether the entity conforms to the right protocol. Also audit what you index. Don't donate sensitive records to Spotlight just because the API makes it easy. An automation surface is still a privacy surface.

The Shortcuts app is the real test environment

Simulator coverage is fine for compilation. It is not fine for trust. Run through the actual user journey on a device: find the shortcut in the Shortcuts app, add it, run it from the widget, run it from the share sheet, and run it from an automation. Then do it again after a reboot, in low power mode, and with a flaky network.

Pay attention to permission prompts. A shortcut that asks for access every single time feels broken. A shortcut that fails silently in the background is worse. Check timeout behavior, background execution limits, and what happens when the user locks the phone mid-run. These are the moments where an automation either earns a permanent spot on someone's home screen or gets deleted with a shrug.

Keep a trust ledger

Every failed shortcut run costs more than a failed tap. Users remember that Siri misunderstood them, or that the shortcut opened the app and then did nothing. Add lightweight logging around intent execution so you can see which intents fail, which parameters cause trouble, and which phrases never get used. You don't need a data warehouse. A few os_log categories and a weekly look at crash-adjacent signals will tell you more than a dashboard nobody opens.

A one-afternoon audit checklist

App Intents aren't a checkbox you tick after the main feature ships. They're a discovery surface, a trust surface, and a support surface all at once. Audit them like users are already depending on them, because the ones who do will notice every rough edge. The rest will never find you at all.

All Articles

Related Articles

Your App Gained 12 MB and Nobody Blinked: Making Binary Size a Budget Item

Your App Gained 12 MB and Nobody Blinked: Making Binary Size a Budget Item

Canceled but Still Charged? A StoreKit 2 Entitlement Audit That Saves Support Tickets

Canceled but Still Charged? A StoreKit 2 Entitlement Audit That Saves Support Tickets

The Silent Stall: Auditing BGTaskScheduler Before Users Notice Stale Data

The Silent Stall: Auditing BGTaskScheduler Before Users Notice Stale Data