How to debug iOS Handoff? -
i've added small amount of code app supposed handle handoff. nothing fancy, creating simple nsuseractivity
, setting -[uiviewcontroller useractivity]
property , make current. , did added proper nsuseractivitytypes
array info.plist
, still nothing works. both devices logged in same icloud account, , safari handoff works perfectly. tried everything: app icon not appears on other device lock screen. no errors, no warning, no nothing. how can debug it?
if nothing helps, try see suspicious messages in both of devices console. in xcode menu choose window -> devices, select 1 of devices , related handoff.
in case found was:
jan 27 13:24:40 my-iphone useractivityd[1176] <warning>: <nsxpcconnection: 0x145566b0> connection pid 2012: warning: exception caught during decoding of received message, dropping incoming message. exception: decodeobjectforkey: class "universallink" not loaded or not exist
so problem was: setting -[nsuseractivity webpageurl]
custom subclass of nsurl
named universallink
. i've changed pure nsurl
, worked ever since. hope someone!
Comments
Post a Comment