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

PushModalAsync not working after Xamarin Studio crash

$
0
0

This is a weird one so here is some back story. I was working on a project this evening, and went to debug on device. Found an issue, and decided to debug further. Set some breakpoints in the affected code and was stepping through until the application disappeared from device and Xamarin Studio hung, and hung, and hung and hung. I ended up having to Force Quit Xamarin Studio.

Upon reopening the project, some of the packages were out of date again having prior updated them earlier in the day to Xamarin.Forms 1.3 and the Xamarin.Forms.Labs 1.2.1-pre2 for compatibility and to resolve a compilation error.

Since performing the same update steps, update all packages, then manually update to prerelease of Xamarin.Forms.Labs, an innocent call stopped working that was working prior.

await Navigation.PushModalAsync (new LoginPage ());

This call began to throw an exception stating PushAsync is not supported globally on iOS, please use a NavigationPage. Reverting manually back to Xamarin.Forms 1.2.3 and Xamarin.Forms.Labs 1.2.0 did not solve the issue. I also tried removing and reinstalling several packages, causing many different errors to happen and many more nightmarish scenarios until I got it back to throwing that same exception.

Changing the code to this, ironically did work:

await Navigation.PushAsync (new LoginPage ());

Is this a bug introduced recently? Or is there something obviously corrupted with my project after having to Force Quit.

Any help is greatly appreciated, although I feel that I couldn't create a test case for this.


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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