I want to open another app installed on my iPhone through the app url scheme, I got the url scheme by exporting the app's ipa
@IBAction func openApp(_ sender: Any) {
if let url = URL(string: "avaya://") {
if UIApplication.shared.canOpenURL(url) {
UIApplication.shared.open(url, options: [:])
}
}
}
CodePudding user response:
You are using wrong property.
Essentially, your definition is saying that avaya://
links should open your app but you are not allowed to use them inside the app.