Skip to content

Instantly share code, notes, and snippets.

@4gus71n
Created July 7, 2016 18:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 4gus71n/b204199ec5e5df69463987a5824a4a4e to your computer and use it in GitHub Desktop.
Save 4gus71n/b204199ec5e5df69463987a5824a4a4e to your computer and use it in GitHub Desktop.
Example
//En AppDelegate.cs
public override bool ContinueUserActivity (UIApplication application, NSUserActivity userActivity, UIApplicationRestorationHandler completionHandler)
{
string url = ""; //Sacas el ultimo segmento de userAcvitity.WebpageUrl y lo asignas aca
if (!string.IsNullOrWhiteSpace (url)) {
MessagingCenter.Send<NSUserActivitySearch.App, string> (Xamarin.Forms.Application.Current as NSUserActivitySearch.App, "ShowResetScreen", url);
}
return true;
}
//En App (proyecto core)
public App ()
{
//Dentro del Initialize del App
MessagingCenter.Subscribe <NSUserActivitySearch.App, string> (this, "ShowResetScreen", async (sender, arg) => {
var resetHash = arg;
await MainPage.Navigation.PushAsync (todoItemPage);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment