continueUserActivity not called iOS swift

Problem:

I had an app with sharing data from other apps to my app.If they click the url from whatsapp or others it will open my app and navigate to some page.

Solution:

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

 not called because it was depricated.

so try the below method

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


Comments

Popular posts from this blog

How to blink a button iOS swift?

iOS flutter while run to iPhone it had the error - Cannot find type 'PhoneNumberKit' in scope