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

Navigation Confusion

$
0
0

I am obviously missing something or not understanding the Navigation correctly. I have a UserLogin page that when the user logs in they are sent to another page for two factor authentication.

await Navigation.PushModalAsync(new TwoFactorPage(UserKey, TicketValue));

this works fine and it the user get the two factor correct I send them onto the main page

await Navigation.PushModalAsync(new MainPage(UserKey));

But if the user gets the two factor incorrect I want to send them back to the userlogin page but everything I do results in a error.
I thought I was supposed to use

await Navigation.PopAsync();

but that doesn't work, give the me lovely "is not supported globally on Android, please use a NavigationPage"

So am I doing my page navigation wrong? How do I go back a page?


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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