ios – Difference between scene:openURLContexts: and scene:continueUserActivity


My code has implemented both scene:openURLContext and scene:continueUserActivity methods. However when the coming URL is universal link, the second method is being called. If it is not a universal link (e.g. Custom URL scheme), the first method is being called.

My question is what is the difference between these two, and for the first method, I can have access to source application from URLContext. But for the second one only thing I got is a webpageURL. Is this possible for Universal Link to know the source application

I am a totally beginner to iOS. Please correct me if I am wrong. Thanks!