Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Handoff measuring

Tags:

ios

swift

I want to measure in analytics usage of Handoff in my app. How to check that NSUserActivity comes from handoff? Variable eligableforhandoff doesn't work, because it is true after spotlightsearch too

like image 854
Roman Barzyczak Avatar asked Jul 07 '16 07:07

Roman Barzyczak


1 Answers

You can use the userInfo dictionary on the activity to pass any app-specific information you want (if it can be encoded into a plist). So you can specify some key that you only add for handoff and use that to track any details you want.

like image 163
Wain Avatar answered Nov 04 '22 16:11

Wain