Opening the Apple TV App Store

前端 未结 7 1135
南旧
南旧 2020-12-13 22:06

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

7条回答
  •  长情又很酷
    2020-12-13 22:50

    Unfortunately this is not possible with the current tvOS.

    On iOS, as advised by Apple in QA1629, we would do:

    NSString *iTunesLink = @"https://itunes.apple.com/us/app/apple-store/id375380948?mt=8";
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:iTunesLink]];
    

    The above request goes through Safari which does not exist on tvOS. Therefore, it won't work.

    However, Custom URL Schemes are supported on tvOS which might help at least a bit.

提交回复
热议问题