-
Re: iOS13 application openUrl?
DiAvisoo Oct 11, 2019 4:17 AM (in response to DiAvisoo)Sorry, I was a bit unclear. Previously, when downloading a file through another app (like Safari), the user could select to open this file in my app by tapping "Copy To (app)".
I would then catch this copy request through the appdelegate:
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options { [...] }
This delegate is not called in iOS13, only iOS12 and below.
I have tried finding a way to catch the "Copy to" request from other apps to no avail. There seems to be a new way of handling these things through a SceneDelegate?
I have added the SceneDelegate and set it up in the plist. Generally, it seems to be working but the SceneDelegate doesn't have a : openUrl method.
Please help!
-
Re: iOS13 application openUrl?
Germanotto Oct 28, 2019 2:20 AM (in response to DiAvisoo)Hi, the UISceneDelegate protocol has this optional method that you can implement
func scene(_ scene: UIScene, openURLContexts URLContexts: Set)
It will be called in iOS 13 instead of AppDelegate's openURL
-