How to redirect apps from browser to safari?
on android, I do this if a user opens my site through a browser built-in for example in FB or a Telegram, then he immediately redirects to google chrome where my site opens Location: googlechrome: // navigate? Url = $ url
googlechrome: // navigate? Url = $ url
how to do the same on ios you just threw on safari?
you can do this with a deep link
you go to the properties Xcode and add a associated domains: for example applinks:flink.page.link <-(flink.page.link should be your url)
then in the appDelegate put this
func application(_ application: UIApplication, continue userActivity: NSUserActivity,
restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool {
if let incomingURL = userActivity.webpageURL {
//open a view or something else
}
return false
}
for more information use this: ios deep link
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.