Siri voice shortcut presentation execute scene delegate twice

Problem:

While foregrounded the app and you trigger siri to execute a voice command that you configured on your app it triggers twice with two activities instances of the same type which with the same states which then could potentially trigger twice an action

Steps To Reproduce:

Configure your plist to support an Scene

App Delegate to configure your default configuration

on the scene load as a root the ViewController

the view controller is only containing the logic to configure the voice shortcut and shows a button

after configuring the shortcut with the app open open siri and execute the voice command and the scene(_ scene: UIScene, continue userActivity: NSUserActivity) will be executed twice with the same activity type but different instances of the activity

Siri voice shortcut presentation execute scene delegate twice
 
 
Q