How do I check if my app is resumed by a Siri shortcut
问题 I am working with Siri shortcuts . I wanted to know if my app is launched from a Siri shortcut in the following cases: When the application is running in the background When the application is not running in the background For case 2 , I can use the " didFinishLaunchingWithOptions " method but for case 1 , I am not sure what approach to use. I would appreciate any suggestions and thoughts on this topic. Thank you. 回答1: You can implement this check in your AppDelegate func application(_