title: Launch app from INExtension in SiriKit
body: <p>I want to use SiriKit to start a workout. Starting the workout requires opening the main app from the app extension.</p>
  
  <p>The boilerplate that Apple provides for the <code>INStartWorkoutIntentHandling</code> handler is</p>
  
  <pre><code>func handle(startWorkout startWorkoutIntent: INStartWorkoutIntent, completion: (INStartWorkoutIntentResponse) -&gt; Void) {
      let userActivity = NSUserActivity(activityType: NSStringFromClass(INStartWorkoutIntent))
      let response = INStartWorkoutIntentResponse(code: .success, userActivity: userActivity)
      completion(response)
  }
  </code></pre>
  
  <p>How can I open my own app from here? Something like <code>myapp://workout?action=start&amp;name=pushups</code>  <a href="https://stackoverflow.com/questions/24356314/openurl-from-app-extension">This answer</a> doesn't seem relevant, as I don't have a <code>UIViewController</code> with a <code>extensionContext</code> property for this extension type.</p>
  
  <p>Last related bit: For the other actions (pause, end) I’d prefer to not open the main app, but to simply pause the workout which is running in the main app. I could use a similar custom URL to pause it, but that would open up the app which is an extra unnecessary step. Any good way to tell the main app to take a specific action from the INExtension without opening the app?</p>