Trying to build a tvOS app and one of the use cases I have is to be able to link off and open another app in the Apple TV App Store directly on a button click. Can someone p
This is the solution for Swift 4:
Replace XXXXXXXwith your app id.
With this solution its possible to create an appstore link for a not yet released app because only the app id (known from appstore connect) is needed.
guard let tvOSAppStoreUrl = URL(string: "com.apple.TVAppStore://itunes.apple.com/app/idXXXXXXX?mt=8") else {
return
}
UIApplication.shared.open(url, options: [:], completionHandler: nil)