continue userActivity: NSUserActivity - Identify it is from callkit or contacts

我们两清 提交于 2019-12-24 03:01:33

问题


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

来源:https://stackoverflow.com/questions/56087738/continue-useractivity-nsuseractivity-identify-it-is-from-callkit-or-contacts

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!