Reputation: 3383
I want to implement deep linking in my iOS App. i want to open my app specific page on a link (link is changing everytime) .. i have tried this Link
But it is in Swift and i am using objective c
if there is any helpfull link objective c , please do share. Thanks
Upvotes: 1
Views: 2656
Reputation: 512
Please try the below method and update if you were able to proceed.
- (BOOL)application:(UIApplication *)application continueUserActivity:(nonnull NSUserActivity *)userActivity restorationHandler:(nonnull void (^)(NSArray * _Nullable))restorationHandler {
if ([[userActivity activityType] isEqualToString:NSUserActivityTypeBrowsingWeb])
{
NSURL *webUrl = userActivity.webpageURL;
// Extract details from url and act accordingly, like redirection to screens etc.
}
return YES;
}
Upvotes: 1
Reputation: 675
Try to read this code : here
except this read how this will work : http://blog.originate.com/blog/2014/04/22/deeplinking-in-ios/
Upvotes: 1