iOS13 UIApplicationOpenURLOptionsSourceApplicationKey

on iOS 13 beta

when call - (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options


options["UIApplicationOpenURLOptionsSourceApplicationKey"] == nil


dose anybody know why?

Replies

applications are no longer notified of the source application unless they are from the same application group.

I set up two of my apps in same application group like:


<key>com.apple.security.application-groups</key>

<array>

<string>group.com.xyz.test.test1</string>

</array>


but still getting sourceApplication nil:


let sourceApplication = options[.sourceApplication] as? String


in:


func application(_: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey: Any] = [:]) -> Bool


Additional details: Second app is opened using UIDocumentInteractionController from first app. This is working in iOS 12.0. Stopped working in iOS 13.0 beta.