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?