How to deep link to a clip?

How do you deep-link to a clip in Twitch for iOS?

Deep links allow third party mobile apps and mobile web sites to bring users to a specific place within a Twitch app. This guide explains how to check whether the Twitch App is installed and describes deep link formats.

Deep links are important because they allow tighter integration with Twitch on mobile apps. For example, an app that helps a broadcaster manage his channel could link directly to the user’s dashboard within the Twitch App (as opposed to just launching the app and leaving the user on the “Following” tab).

You can find more information about deep links here. For support, visit the Twitch Developer Forums.

Checking Whether the Twitch App is Installed

You can check whether the Twitch App is already installed on a mobile device as follows:

On iOS Objective C

NSURL *twitchURL = [NSURL URLWithString:@"twitch://open"];
if ([[UIApplication sharedApplication] canOpenURL:twitchURL]) {
    // The Twitch app is installed, do whatever logic you need, and call -openURL:
} else {
    // The Twitch app is not installed. Prompt the user to install it!
}

On iOS Swift

let twitchURL = NSURL(string: "twitch://open")if (UIApplication.sharedApplication().canOpenURL(twitchURL!)) { // The Twitch app is installed, do whatever logic you need, and call -openURL:} else { // The [Twitch](https://androidfist.com/download-twitch-clips-and-videos/) app is not installed. Prompt the user to install it!}

Note: On both iOS platforms, you also must change your app’s Info.plist file to declare that your app is allowed to query the twitch scheme. See the Apple documentation for detailed information.

Thanks for the post. I’m just wondering how you link to a clip. I can link to a stream or video but I don’t know how to deep link to a specific clip.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.