Search code examples
iosobjective-ctvosapple-tvin-app-subscription

tvOS - Manage Subscription Page


On iOS one can simply do:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://buy.itunes.apple.com/WebObjects/MZFinance.woa/wa/manageSubscriptions"]];

Note: Safari is not present on tvOS.

You can directly open the settings app with 'itms-apps'

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"itms-apps://buy.itunes.apple.com/WebObjects/MZFinance.woa/wa/manageSubscriptions"]];

Note: This will only work on device.

Question:

Can someone confirm the second approach will work on an actual Apple TV?

I do not have an actual device and this will not work on simulator.

Thanks!


Solution

  • Calling the following:

    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"itms-apps://buy.itunes.apple.com/WebObjects/MZFinance.woa/wa/manageSubscriptions"]];

    on an AppleTV Dev Kit with TvOS Beta 3 results in nothing happening and getting the following message in the log:

    LaunchServices: ERROR: There is no registered handler for URL scheme itms-apps