iOS Question Deep Link

tariqyounis

Active Member
Licensed User
Longtime User
Hello all;
I was able to open the app from a universal link, but once the app is opened I could not get the Url link. Any help is appreciated.
 

tariqyounis

Active Member
Licensed User
Longtime User
ObjetC:
#if OBJC

@end
@implementation B4IAppDelegate (universallink)
- (BOOL)application:(UIApplication *)application
        continueUserActivity:(NSUserActivity *)userActivity
            restorationHandler:(void (^)(NSArray * _Nullable))restorationHandler {
    NSLog(@"continueUserActivity method");
    if ([userActivity.activityType isEqualToString:NSUserActivityTypeBrowsingWeb]) {
        NSURL *url = userActivity.webpageURL;
        NSLog(@"Received Universal Link: %@", url.absoluteString);
        // Custom user code here if needed.
        return YES;
    }
    return NO;
}

#End If

Yes Sir; I have added this to my main but still the same. The link opens the app but not capturing the Url
 
Upvote 0
Top