Reputation: 11
I usually use the delegate method below when I clicking the universal link to open the app from an inactive/background state; however, it isn't called from a non-running/dead state so I can't use the NSUserActivity object, which provides me the Universal link url I need.
func application(_ application: UIApplication,
continue userActivity: NSUserActivity,
restorationHandler: @escaping ([Any]?) -> Void) -> Bool {
If you are aware of another solution, delegate method, or anything else that may help me get the url please let me know.
Thank you.
Upvotes: 1
Views: 488
Reputation: 1055
Through this delegate method I receive the universal link in app delegate. Please try it. It may helps you.
func application(_ application: UIApplication, open url: URL, sourceApplication: String?, annotation: Any) -> Bool {
}
Upvotes: 0