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

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -