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

Invalid bundle error while upload the app to the app Store

Saved Image in document directory and save path in coredata not able to fetch the image file iOS swift