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

Navigation doesn't works everywhere but on Android 9.0

$
0
0

I am trying to navigate with the following code. It works on iOS, Oreo, and KitKat, but not Pie. I have confirmed this with the emulator and a real device.

MainThread.BeginInvokeOnMainThread( () => Application.Current.MainPage = new MainPage() );

All I get is a white screen indicating a deadlock. If I remove the BeginInvokeOnMainThread() it works on Pie but not iOS.

I know best practice is to always perform UI tasks on the main thread, but am at a loss as to why this is happening. Anyone have any ideas?


Viewing all articles
Browse latest Browse all 89864

Trending Articles



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