I'm trying to open my app from a web page using custom schemes. The app is opened but the following method is not called:
func application(_ app: UIApplication, open url: URL, options [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
// This is not called
}
My info.plist
looks like the following:
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>MyApp</string>
</array>
<key>CFBundleURLName</key>
<string>url here</string>
</dict>
</array>
The project is created with Xcode 11.1, and I'm testing on iOS 13.
I had the same problem, and neither
scene(_ scene:, continue userActivity:)
norscene(_ scene:, openURLContexts URLContexts:)
was called.When I checked the
connectionOptions
passed to the methodscene(_ scene:, willConnectTo session, options connectionOptions:)
it had a user activity with the expected URL. So, I ended up calling the method manually: