Bug 37462 - Using App Compat/App Compat theme breaks Navigation.RemovePage on Android
Summary: Using App Compat/App Compat theme breaks Navigation.RemovePage on Android
Status: RESOLVED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: 2.0.0
Hardware: PC Mac OS
: Highest normal
Target Milestone: ---
Assignee: E.Z. Hart [MSFT]
URL:
: 38744 ()
Depends on:
Blocks:
 
Reported: 2016-01-06 20:46 UTC by Joshua Novak
Modified: 2016-06-29 22:59 UTC (History)
10 users (show)

Tags: ac
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Joshua Novak 2016-01-06 20:46:20 UTC
I am using App Compat and the Theme.AppCompat.NoActionBar theme in my Xamarin.Forms Android project. I have a button that I want to go back to a certain page, so I am using Navigation.RemovePage to remove all pages except the page I want to go back to and the current page, and then I am using Navigation.PopAsync() to go back. This works normally on Android, but once I start using App Compat it just goes to a blank page that is whatever color I set as my windowBackground color.
Comment 1 Joshua Novak 2016-01-07 00:47:00 UTC
Here is an example project showing the issue:

https://drive.google.com/file/d/0B68aZqcn2sxXNG1FVl9ubzJvM2M/view?usp=sharing
Comment 2 Joshua Novak 2016-01-08 01:53:45 UTC
Any idea when this might be fixed? I'm wondering because it is preventing the release of our app and other users are waiting on this to be fixed to release their app too.
Comment 3 Marco 2016-01-09 12:21:50 UTC
I have the same problem.

Using AppCompat, the Navigation is completely destroyed.

Please, solve it as soon as possible (An app with a broken Navigation is not an app, is sxxt).

In this moment I can't release my app because of this (we are losing money and time).

Can we have an estimation of when you can fix this problem?
Comment 4 Joshua Novak 2016-01-20 10:09:46 UTC
Any updates? This is very important.
Comment 5 Stefan de Vogelaere 2016-01-20 10:27:03 UTC
Could you suggest a workaround in the meantime?
Comment 6 Joshua Novak 2016-01-26 23:00:20 UTC
Come on, we need a fix. This is delaying our projects. This needs to be higher priority since it is a huge app breaking issue.
Comment 7 Michael Rumpler 2016-01-27 11:05:27 UTC
Same problem here. I cannot swtch to AppCompat.
Comment 8 Pavel.Savik 2016-02-01 11:26:03 UTC
Same problem here. I just want to add some usecases. 
1. I'm using theme with ActionBar and title in ActionBar is actually updating and shows right value.
2. InsertPageBefore is broken too (when navigating to this page it shows blank page).
Comment 9 btaenny 2016-02-11 10:46:52 UTC
Same problem here. Is there any workaround to remove a page from the navigation stack?
Comment 10 Michael Rumpler 2016-02-11 12:05:31 UTC
This has been fixed in XF 2.1.0-pre3. So just update your nugets. See http://forums.xamarin.com/discussion/59503/xamarin-forms-2-1-0-pre4-released/p1
Comment 11 Paul DiPietro [MSFT] 2016-02-15 00:30:44 UTC
*** Bug 38744 has been marked as a duplicate of this bug. ***