I've created an OpenIntent with an AppEntity as target. Now I want to receive this entity when the intent is executed and the app is opened. How can I do that? I can't find any information about it and there are no method for this in the AppDelegate
OpenIntent get target on open app
Are you not seeing your intent's perform
method called?
— Ed Ford, DTS Engineer
@DTS Engineer somewhat related to this, the documentation and sample app doesn't explain clearly how OpenIntent
for an IndexableEntity
is supposed to work.
perform()
has a default implementation in this case, and there's a brief mention of universal links. So I'm guessing this is only intended to be used for entities that are also web accessible? And if not then you should just use legacy CSSearchableItem
& NSUserActivity
?
It looks like in iOS 26, there's some automagic with macros and the compiler to wire the two together to move away from NSUserActivity, so maybe this just wasn't fully fleshed out in iOS 18?
Or is there something I'm missing?