I have encountered a problem about AppEntity and AppIntent shortcut. Here is what i have done.
- I created some shortcuts use
AppShortcutsProvider.
Each shortcut created byAppEntity.
- I search my app name in spotlight, so these shortcut can be shown in the spotlight.
- I don't click the shortcut and back to home screen. Then I delete these shortcuts by modify the
Entity.defaultQuery
and callAppShortcutsProvider.updateAppShortcutParameters()
- Going back to the spotlight, I can see my previous query and result. When I clicked the shortcut, I got an error WFBackgroundShortcutRunnerErrorDomain
Should the spotlight result need to be refreshed when i come back to it?