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

DisplayAlert popup not showing in iOS after PopModalAsync?

$
0
0

I have 2 main flows for my my Xamarin Forms application:

(1st time user) Login Screen -> Welcome Screen -> Main Account Screen
(Returning user) Login Screen -> Main Account Screen

My main account screen shows popups using Xamarin Forms' DisplayAlert() function. These popups show up just fine in android, but for some reason the main account screen popups will not show for 1st time users in iOS. If a 1st time user logs in i pushmodalasync the welcome screen, then i pop it off the stack and push on the main account page, my alerts will not show from there (despite working in Android).

I get this warning in VS output: Attempt to present on (...) whose view is not in the window hierarchy

Edit: I use the same main account screen code for displaying alerts to returning users, and it works fine in iOS. For some reason the error only occurs when the welcome screen is pushed on/popped off before reaching the main account.


Viewing all articles
Browse latest Browse all 89864

Trending Articles



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