Bug 52419 - Error in when OnAppearing for a page is called
Summary: Error in when OnAppearing for a page is called
Status: RESOLVED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: 2.3.3
Hardware: Macintosh Mac OS
: High normal
Target Milestone: ---
Assignee: Samantha Houts [MSFT]
URL: https://github.com/Manne990/FormsOnAp...
Depends on:
Blocks:
 
Reported: 2017-02-09 12:34 UTC by Manne990
Modified: 2017-06-22 01:04 UTC (History)
5 users (show)

Tags: tabbedpage onappearing android 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 Manne990 2017-02-09 12:34:37 UTC
Download this repo:
https://github.com/Manne990/FormsOnAppearingBug

Run on Android device or emulator.

Do these steps:

1. Press the button "Next" a couple of times (OnAppearing calls is logged in the IDE output window).
2. Switch to the other tab (TAB 2)
3. Switch back to the first tab (TAB 1)
4. Now OnAppearing for all pages in the navigation stack is called instead of just the one on the top
5. Press the back button
6. No OnAppearing is called when moving back in the navigation stack

This bug is present only for Android when MainActivity inherits from Xamarin.Forms.Platform.Android.FormsApplicationActivity.
Comment 1 Paul DiPietro [MSFT] 2017-02-28 14:38:27 UTC
Thanks for the reproduction. Setting this to confirmed for now. There's another bug I know of that involves OnAppearing and TabbedPage but I think the behavior of this might be separate.
Comment 2 Samantha Houts [MSFT] 2017-06-08 17:13:42 UTC
https://github.com/xamarin/Xamarin.Forms/pull/963
Comment 3 Samantha Houts [MSFT] 2017-06-22 01:04:41 UTC
Should be fixed in 2.3.6-pre1. Thank you!