Когда я введите: pl.myapp.test: // test? Param1 = 1 в Safari мое приложение открывается, но я не могу получить данные по этой ссылке
Код: Выделить всё
CFBundleURLTypes
CFBundleURLName
pl.myapp.test
CFBundleURLSchemes
pl.myapp.test
< /code>
У меня также: < /p>
func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
NSLog("URL: %@", url.absoluteString)
print("URL: \(url)")
logToFile("URL: \(url.absoluteString)")
}
< /code>
и < /p>
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
logToFile("test")
if let url = launchOptions?[.url] as? URL {
NSLog("URL: %@", url.absoluteString)
print("URL: \(url)")
logToFile("URL: \(url.absoluteString)")
}
}
Подробнее здесь: https://stackoverflow.com/questions/794 ... parameters
Мобильная версия