continue userActivity: NSUserActivity - Identify i

2019-07-22 14:47发布

问题:

I have implemented callkit in my project.

So when I report incoming call there is video button. so according to this answer user102008's Answer When user tap on video button

func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool

Delegate method called with intent type INStartVideoCallIntent

But There is other case where the same delegate method called with INStartVideoCallIntent when user tap video button from contacts app

See the image

Now the problem is I am not able to identify how can I differentiate both actions Callkit video button and contacts video button.

Any Help or suggestion would be helpful. Thanks in advance