Skip to content

Commit

Permalink
chore(tvOS example): update deprecated method openURL(_:)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aditi3 authored and uerceg committed Feb 28, 2024
1 parent e7195d0 commit dff0ba9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion examples/AdjustExample-tvOS/AdjustExample-tvOS/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,14 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
return YES;
}

- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey, id> *)options {
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options {
NSLog(@"Scheme based deep link opened an app: %@", url);
// Pass deep link to Adjust in order to potentially reattribute user.
// add your code below to handle deep link
// (e.g., open deep link content)
// url object contains the deep link

// Call the below method to send deep link to Adjust backend
[Adjust appWillOpenUrl:url];
return YES;
}
Expand Down

0 comments on commit dff0ba9

Please sign in to comment.