Ios Spotlight Indexing
Index key app content using CSSearchableItem with a CSSearchableItemAttributeSet so it is discoverable from iOS Spotlight search without opening the app.
$ aoe install @community/rule-ios-spotlight-indexing Projection
Always in _index.xml · the agent never has to ask for this.
IosSpotlightIndexing [rule] v1.0.0
Index key app content using CSSearchableItem with a CSSearchableItemAttributeSet so it is discoverable from iOS Spotlight search without opening the app.
Loaded when retrieval picks the atom as adjacent / supporting.
IosSpotlightIndexing [rule] v1.0.0
Index key app content using CSSearchableItem with a CSSearchableItemAttributeSet so it is discoverable from iOS Spotlight search without opening the app.
Meta
- License: Apache-2.0
- License Provenance: package-authorship-claim
Applies To
any iOS app containing content users might search for by name or keyword (articles, contacts, products, notes)
Loaded when retrieval picks the atom as a focal / direct hit.
IosSpotlightIndexing [rule] v1.0.0
Index key app content using CSSearchableItem with a CSSearchableItemAttributeSet so it is discoverable from iOS Spotlight search without opening the app.
Meta
- License: Apache-2.0
- License Provenance: package-authorship-claim
Applies To
any iOS app containing content users might search for by name or keyword (articles, contacts, products, notes)
Examples
- Index an article: CSSearchableItemAttributeSet with title, contentDescription, thumbnailData; wrap in CSSearchableItem with unique identifier.
- Submit via CSSearchableIndex.default().indexSearchableItems([item]).
- Verify: search for an in-app item title from the iOS Spotlight search; it must appear as a result.
Relations
related: [@community/pattern-ios-app-shortcuts-siri, @community/rule-ios-share-sheet, @community/pattern-ios-live-activities]
Rationale
Spotlight integration extends app discoverability to the system level. Users who recall an article, contact, or product name from your app can find and re-engage with it directly from Spotlight, without having to navigate through the app hierarchy.
Meta
- License: Apache-2.0
- License Provenance: package-authorship-claim
Applies To
any iOS app containing content users might search for by name or keyword (articles, contacts, products, notes)
Source
aoe-engine/examples/frontend-design/primes/compiled/@community/rule-ios-spotlight-indexing/atom.yaml