I am trying to open a YouTube application from my application using the URL scheme or YouTube.com domain that opens the YouTube application directly on the iOS device.
This is the code I tried:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithFormat:@"youtube://results?search_query=trailer+%@",movieTitle]]];
and
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithFormat:@"https://www.youtube.com/results?search_query=trailer+%@",movieTitle]]];
But nothing works. Any ideas on how to get the URL scheme for the YouTube tvOS app?
objective-c youtube tvos url-scheme
Blackm
source share