Confusing app behaviour Xamarin Android Navigation to page from Main.

karitall 26 Reputation points

I have an app working without issues when in debug mode.
But when the app is built as a release and new APK file is installed in mobile the App crashes at just one command?

The below works perfect in debug mode:

await Navigation.PushAsync(new TextFileBrowserPage());

BUT crashes when built as release?
Prior release builds have been working. So this is a new issue.

This is just for this page and all other navigations works fine in both builds.

I have this in App.CS
MainPage = new NavigationPage(new MainPage());

I guess more details are needed for you to answer?

I have of course rebooted, closed/started, etc.

I am pretty unexperinced so pleasa be clear when asking for additional information! :-)

Regards Kari T

A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,819 questions
{count} votes