Opening TestFlight app from another app and deep link to specific app Opening TestFlight app from another app and deep link to specific app ios ios

Opening TestFlight app from another app and deep link to specific app


There are two things you need to do. First, check to see if TestFlight is installed. Then create a new link to your app.

NSURL *customAppURL = [NSURL URLWithString:@"itms-beta://"];if ([[UIApplication sharedApplication] canOpenURL:customAppURL]) {    // TestFlight is installed    // Special link that includes the app's Apple ID    customAppURL = [NSURL URLWithString:@"https://beta.itunes.apple.com/v1/app/978489855"];     [[UIApplication sharedApplication] openURL:customAppURL];}

This special https://beta.itunes.apple.com URL will be opened directly in TestFlight.

Finally, if you are using iOS 9 (or later), you need to make an addition to your Info.plist to get the canOpenURL: method to work.

If your app is linked on or after iOS 9.0, you must declare the URL schemes you want to pass to this method. Do this by using the LSApplicationQueriesSchemes array in your Xcode project’s Info.plist file. For each URL scheme you want your app to use with this method, add it as a string in this array.

<key>LSApplicationQueriesSchemes</key><array>    <string>itms-beta</string></array>


From looking at the plist the URL scheme for TestFlight is "itms-beta://" I can't manage to get it deep linking yet, I've tried passing it the Apple ID, with and without a ? along with prefixing it with appleid= I will try bundle ID next.

To open the TestFlight app on the users device you can use:

NSURL *customAppURL = [NSURL URLWithString:@"itms-beta://"];if ([[UIApplication sharedApplication] canOpenURL:customAppURL]) {    [[UIApplication sharedApplication] openURL:customAppURL];}


Most of the built-in applications Apple provides respond to custom URL schemes; for example, the Maps, Mail, YouTube, iTunes, and App Store applications will all open in response to custom URLs. However, there are also many established third-party applications with published URL schemes that you can use in your own application. You can search the applications schemes on

  1. http://handleopenurl.com/

  2. http://wiki.akosma.com/IPhone_URL_Schemes – both have a great list of URL schemes

Once you got the custom URL scheme then you can deep link to that app using the same schema,

NSURL *customAppURL = [NSURL URLWithString:@"urlscheme://"];//Eg: NSURL *whatsappURL = [NSURL URLWithString:@"whatsapp://send?text=Hello%20World!"];if ([[UIApplication sharedApplication] canOpenURL:whatsAppURL]) {    [[UIApplication sharedApplication] openURL:whatsAppURL]]];}