breakpointing inside the callback and logging success shows false.
I added itms-apps to my plist: LSApplicationQueriesSchemes
and put this in my app delegate:
func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -> Bool {
return true
}
func moreTapped() {
let url = NSURL(string: "itms-apps://itunes.com/developer/quantum-productions/id979315877")
if #available(iOS 10.0, *) {
UIApplication.shared.open(url! as URL, options: [:], completionHandler: {(success: Bool) in
})
} else {
UIApplication.shared.openURL(url! as URL)
}
}
from Opening a url is failing in Swift
No comments:
Post a Comment