title: Using Handoff with Watchkit to bring the iPhone app to the foreground
body: <p>I have a simple project where the user taps a button on the Apple Watch and some audio plays on the iPhone, this is easy enough to do with the openParentApplication method and having the handleWatchKitExtensionRequest code in AppDelegate. However, while this works in the simulator, it will NOT work on the actual devices if the iPhone app is not already open. I'm trying to find if it's possible to use other methods, that will work even if the iPhone app isn't already open.</p>
  
  <p>I've read on a stackoverflow answer <a href="https://stackoverflow.com/questions/28760986/how-to-launch-ios-app-from-watch/28823756#28823756">here</a> that it is possible to use Handoff to (partially) bring the phone app to the foreground, using <code>WKInterfaceController updateUserActivity:userInfo:webpageURL:</code> and <code>UIApplicationDelegate application:continueUserActivity:restorationHandler</code>. However, as a new developer I'm struggling to work out how to do this properly without any examples. Can anyone give some example code of how this would work, where both these are used together to run some code on the iphone app?</p>