public override bool OpenUrl(UIApplication app, NSUrl url, string sourceApp, NSObject annotation) { var rurl = new Rivets.AppLinkUrl (url.ToString ()); var id = string.Empty; if (rurl.InputQueryParameters.ContainsKey("id")) id = rurl.InputQueryParameters ["id"]; if (rurl.InputUrl.Host.Equals ("products") && !string.IsNullOrEmpty (id)) { var c = new ProductViewController (id); navController.PushViewController (c, true); return true; } else { navController.PopToRootViewController (true); return true; } }
public override bool OpenUrl(UIApplication app, NSUrl url, string sourceApp, NSObject annotation) { var rurl = new Rivets.AppLinkUrl(url.ToString()); var id = string.Empty; if (rurl.InputQueryParameters.ContainsKey("id")) { id = rurl.InputQueryParameters ["id"]; } if (rurl.InputUrl.Host.Equals("products") && !string.IsNullOrEmpty(id)) { var c = new ProductViewController(id); navController.PushViewController(c, true); return(true); } else { navController.PopToRootViewController(true); return(true); } }