Occasionally, my application gets into a state where every call to DisplayAlert will open twin dialogs, one immediately after the other. I can interact with the top dialog, which then disappears, but the first (lower) dialog remains. Interacting with the remaining dialog throws InvalidOperationException: The underlying Task is already in one of the three final states: RanToCompletion, Faulted, or Canceled.
I can duplicate this reliably. Currently I'm using Xamarin.Forms to build only certain pages in an old iOS app. To push the view:
NavigationController.PushViewController(demo.CreateViewController(), true);
When I pop out of the top view that uses Xamarin.Forms, back to a native iOS view (defined in XIB), the twin dialogs begin to appear as soon as I re-enter a view built using Xamarin.Forms.
Has anyone else encountered this?