Skip to content
This repository has been archived by the owner on Feb 10, 2023. It is now read-only.

Commit

Permalink
feat(Universal Links): Set base for deep linking
Browse files Browse the repository at this point in the history
see #74
  • Loading branch information
hypery2k committed Aug 5, 2018
1 parent 4f8de4d commit 3ee4322
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion src/urlhandler.ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,28 @@ appDelegate.prototype.applicationOpenURLOptions = function (
if (!previousResult) {
let appURL = extractAppURL(url.absoluteString);
if (appURL != null) {
getCallback()(extractAppURL(appURL));
getCallback()(appURL);
}
return true;
}

return previousResult;
};

enableMultipleOverridesFor(appDelegate, 'continueUserActivity');
appDelegate.prototype.continueUserActivity = function (
application: UIApplication,
userActivity: NSUserActivity
): boolean {
if (userActivity.activityType === NSUserActivityTypeBrowsingWeb) {

let appURL = extractAppURL(userActivity.webpageURL);

if (appURL !== null) {
getCallback()(appURL);
}
}

return true;
};

0 comments on commit 3ee4322

Please # to comment.