When I tap on the link, the app opens but navigates to MainPage instead of reading the url and opening the corresponding page. I tried to click on the link again ,when the app is already opened, and it worked! It seemed like the constructor
public App(){ InitializeComponent(); MainPage = new NavigationPage(new MainPage ()); }
works first when the app is opened instead of
protected override async void OnAppLinkRequestReceived(Uri uri)
{
base.OnAppLinkRequestReceived(uri);
MainPage = new NavigationPage(new Page1(""));
}
How do I set the priority for OnAppLinkRequestReceived() before App()?