Declared in NSURL+DTAppLinks.h

Overview

A collection of category extensions for NSURL that provide direct access to built-in app capabilities.

For example: Open the app store on the page for the app

NSURL *appURL = [NSURL appStoreURLforApplicationIdentifier:@“463623298”]; [[UIApplication sharedApplication] openURL:appURL];

Class Methods

appStoreReviewURLForApplicationIdentifier:

Returns the URL to open the mobile app store on the app’s review page.

+ (NSURL *)appStoreReviewURLForApplicationIdentifier:(NSString *)identifier

Parameters

identifier

The application identifier that gets assigned to a new app when you add it to iTunes Connect.

Return Value

Returns the URL to the direct app store link

Discussion

The reviews page is a sub-page of the normal app landing page you get with appStoreURLforApplicationIdentifier:

Declared In

NSURL+DTAppLinks.h

appStoreURLforApplicationIdentifier:

Returns the URL to open the mobile app store on the app’s page.

+ (NSURL *)appStoreURLforApplicationIdentifier:(NSString *)identifier

Parameters

identifier

The application identifier that gets assigned to a new app when you add it to iTunes Connect.

Return Value

Returns the URL to the direct app store link

Discussion

URL construction as described in QA1629. Test and found to be opening the app store app directly even without the itms: or itms-apps: scheme. This kind of URL can also be used to forward a link to the app to non-iOS devices.

Declared In

NSURL+DTAppLinks.h