Opening a url is failing in Swift
Opening a url is failing in Swift 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)     } }                             Are you testing on a real device?                     – rmaddy                 Jun 21 at 23:57                                                                                                                 I try on a device, get "Cannot Connect to App Store". Device is online           ...







Comments
Post a Comment