Search code examples
iospush-notificationwatchkitapple-watch

WatchKit: Handoff from Long Look?


Is it possible to use Handoff in Long Look from Apple Watch to iPhone? The use case would be like this:

  1. User receives a push notification on his Apple Watch.
  2. By raising the Watch he gets more info in Long Look.
  3. If he needs even more info, he could take out his iPhone. On the lock screen he should find the Handoff icon of the main iOS app. By swiping it up, he can launch the iOS app into the detail page relevant to the notification.

I saw that the WKUserNotificationInterfaceController class has the updateUserActivity:userInfo:webpageURL: method. But couldn't find a definite answer on the Internet, whether handoff from Long Look is possible. So I'd like to hear your experiences on it :)


Solution

  • If you are using a dynamic notification interface, yes, you can use Handoff from it.

    Reference: https://developer.apple.com/watchkit/tips/ Under the "Use Handoff" section.