I've added a small amount of code to my app which supposed to handle Handoff. Nothing fancy, just creating simple NSUserActivity
, setting my -[UIViewController userActivity]
property to it and make it current. And I did added proper NSUserActivityTypes
array to my Info.plist
, but still nothing works. My both devices logged in to the same iCloud account, and Safari Handoff works perfectly. I tried everything: my app icon does not appears on the other device lock screen. No errors, no warning, no nothing. How can I debug it?
How to debug iOS Handoff?
720 views Asked by Alexander Vasenin At
1
If nothing helps, try to see for suspicious messages in both of your devices console. In Xcode menu choose Window -> Devices, select one of your devices and look for anything related to Handoff.
In my case what I found was:
So my problem was: I was setting
-[NSUserActivity webpageURL]
to my custom subclass ofNSURL
namedUniversalLink
. I've changed it to pureNSURL
and it worked perfectly ever since. Hope this help someone!