//external universal link private void OnLinkActivated(LinkActivation linkActivation) { Debug.Log($"ApplicationOnDeepLinkActivated: {linkActivation.Uri} is valid deep link: {linkActivation.Uri.IsValidDeepLink()}"); QuartersLink link = QuartersLink.Create(linkActivation.Uri); if (link.Uri.IsValidDeepLink()) { //deep link opened if (OnDeepLink != null) { OnDeepLink(link); } } }
//webview private void WebViewOnOnPageStarted(UniWebView webview, string url) { Debug.Log($"WebViewOnOnPageStarted: {url}"); QuartersLink link = QuartersLink.Create(url); if (link.Uri.IsValidDeepLink()) { //deep link opened WebView.Hide(); if (OnDeepLink != null) { OnDeepLink(link); } } }