作者:无言的歌slp_630 | 来源:互联网 | 2022-10-10 20:56
I have created html with following body:
success
When i try to open page where html uploaded. from my iphone (safari) my app successfully opened but
application:openURL:options:
does not called. Have u any ideas?
my info plist look like this:
MyApp
CFBundleURLTypes
CFBundleURLSchemes
MyApp
CFBundleURLName
url here
My appDelegate Methods:
func application(_ app: UIApplication, open url: URL, options [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
print("application openURL options is called")
}
Project is created in xCode 11.1, testing on iOS 13
1> matt..:
scene(_:openURLContexts:)
在您的场景委托中实施。
如果该网址启动了您的应用,则会显示,scene(_:willConnectTo:options:)
而您将获得它options
。