#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