Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Difference between PushAsync and PushModalAsync ?

$
0
0

I'm getting Error and found some solution, I don't is this good solution or not.

Error : System.InvalidOperationException: PushAsync is not supported globally on iOS, please use a NavigationPage.

try{
Navigation.PushAsync (new LoginScreen ()); // Exception come and crash the application
}catch(Exception exception){
Navigation.PushModalAsync(new LoginScreen ()); // Works
}

But after did this implementation on next screen same Exception Come again... Is their any good solution or should I do on every page ?


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>