以下は、特定のユースケース向けのディープリンク追加機能です。
ダイレクトディープリンク
最後に渡されたディープリンクを取得する
+ (void)lastDeeplinkWithCompletionHandler:(nonnull ADJLastDeeplinkGetterBlock)completion;
Adjust.lastDeeplinkWithCompletionHandler:
メソッドを呼び出すことで、Adjust.processAndResolveDeeplink
または Adjust.processDeeplink
メソッドに渡された最後のディープリンクのURLを取得できます。このメソッドは、最後に受け取ったディープリンクを NSURLとして返します。
Adjust.lastDeeplink { lastDeeplink in
if let deeplink = lastDeeplink {
// Handle the deeplink here
print("Last deep link: \(deeplink.absoluteString)")
[Adjust lastDeeplinkWithCompletionHandler:^(NSURL * _Nullable lastDeeplink) {
if (lastDeeplink != nil) {
// Handle the deeplink here
NSLog(@"Last deep link: %@", [lastDeeplink absoluteString]);
リファラーを使用したディープリンクを処理する
オプションのリファラーURLは、ディープリンクやアプリのソースを計測して、より正確なアトリビューションやリアトリビューション、ディープリンクを実現するために使用されます。例えば、SEOやオーガニック検索、Adjustリンクなどのチャネルには直接使用されません。クライアントのルートドメインでユニバーサルリンクが実装されており、それによってアプリが起動する場合、そのチャネルでは、ユーザーのアトリビューションまたはリアトリビューションを行うために、リファラーURLから得られるシグナルに依存する場合があります。
リファラーURLを設定する
func application(_ application: UIApplication,
continue userActivity: NSUserActivity,
restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool {
if userActivity.activityType.isEqual(NSUserActivityTypeBrowsingWeb) {
// Pass deep link URL to Adjust in order to potentially reattribute the user
// and to get the URL resolved if it’s a shortened one.
if let incomingURL = userActivity.webpageURL {
if let deeplink = ADJDeeplink(deeplink: incomingURL) {
// If referrer URL is available, add it to the deeplink object
if let referrer = URL(string: "https://example.com") {
deeplink.setReferrer(referrer)
Adjust.processAndResolve(deeplink) { resolveDeeplink in
// resolvedLink contains either resolved URL (if it was unshortened)
// or just echoed URL if it was not shortened
- (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void (^)(NSArray<id<uiuseractivityrestoring>> *restorableObjects))restorationHandler {
if ([[userActivity activityType] isEqualToString:NSUserActivityTypeBrowsingWeb]) {
// Pass deep link URL to Adjust in order to potentially reattribute the user
// and to get the URL resolved if it’s a shortened one.
ADJDeeplink *deeplink = [[ADJDeeplink alloc] initWithDeeplink:[userActivity webpageURL]];
NSURL *referrer = [NSURL URLWithString:@"https://example.com"];
// If referrer URL is available, add it to the deeplink object
[deeplink setReferrer:referrer];
[Adjust processAndResolveDeeplink:deeplink
withCompletionHandler:^(NSString * _Nullable resolvedLink) {
// resolvedLink contains either resolved URL (if it was unshortened)
// or just echoed URL if it was not shortened
ディファードディープリンク
Adjust LinkMeを設定する
AdjustのLinkMeソリューションは、デバイスのクリップボードからディープリンク情報を読み取ることで、強力なディファードディープリンクのパフォーマンスを保証するオプション機能です。
ユーザーがLinkMeのURLをクリックすると、そのリンク情報をシステムのペーストボードにコピーするオプションがあります。Adjust SDKを使用してシステムのペーストボードを読み、ディープリンクの情報を確認することができます。ディープリンクがある場合、Adjust SDKはユーザーをアプリ内の正しいページに転送します。
アプリ内でペーストボードの確認を有効化するには、[ADJConfig enableLinkMe]
メソッドを呼び出します。
let yourAppToken = "{YourAppToken}"
let environment = ADJEnvironmentSandbox
let adjustConfig = ADJConfig(
environment: environment)
adjustConfig.enableLinkMe()
NSString *yourAppToken = @"{YourAppToken}";
NSString *environment = ADJEnvironmentSandbox;
ADJConfig *adjustConfig = [[ADJConfig alloc] initWithAppToken:@"{YourAppToken}"
environment:ADJEnvironmentSandbox];
[adjustConfig enableLinkMe];