Bug 59064 - ViewCell.OnDisappearing Doesn't Fire When Page Popped Off Navigation Stack
Summary: ViewCell.OnDisappearing Doesn't Fire When Page Popped Off Navigation Stack
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 2.4.0
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2017-08-26 19:08 UTC by Brandon Minnick
Modified: 2018-04-08 03:42 UTC (History)
5 users (show)

Tags: xamextfollowed, 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 for Bug 59064 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Brandon Minnick 2017-08-26 19:08:42 UTC
When a page containing a ListView is pushed onto the Navigation Stack, ViewCell.OnAppearing fires.

When the same page is popped off of the Navigation Stack, ViewCell.OnDisappearing does not fire.

Link to Reproduction App

Reproduction Steps

1. Open ViewCellOnDisappearing.sln
2. Build/Deploy ViewCellOnDisappearing.iOS or ViewCellOnDisappearing.Droid
3. Run ViewCellOnDisappearing.iOS on an iOS device or ViewCellOnDisappearing.Droid on an Android device
4. Click on List Page button
5. In the Application Output, OnAppearing Fired is printed for each ViewCell
6. In the navigation bar, click on the back button
7. In the Application Output, OnDisppearing Fired is not printed for each ViewCell


=== Visual Studio Enterprise 2017 for Mac ===

Version 7.1 (build 1297) Installation UUID: 6e5142b4-e8be-4d1c-b75e-4744b0d8c3de Runtime:

Mono (d15-3/da80840) (64-bit) GTK+ 2.24.23 (Raleigh theme)

Package version: 502000215
=== NuGet ===


=== .NET Core ===

Runtime: /usr/local/share/dotnet/dotnet Runtime Versions: 1.1.1 1.0.4 SDK: /usr/local/share/dotnet/sdk/1.0.1/Sdks SDK Version: 1.0.1 MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/msbuild/15.0/bin/Sdks

=== Xamarin.Profiler ===

Version: 1.5.5 Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

=== Apple Developer Tools ===

Xcode 8.3.3 (12175.1) Build 8E3004b

=== Xamarin.iOS ===

Version: (Visual Studio Enterprise) Hash: 80b8487d Branch: d15-3 Build date: 2017-08-18 16:07:26-0400

=== Xamarin.Android ===

Version: (Visual Studio Enterprise) Android SDK: /Users/brandonm/Library/Developer/Xamarin/android-sdk-macosx Supported Android versions: 4.1 (API level 16) 6.0 (API level 23) 7.0 (API level 24) 7.1 (API level 25)

SDK Tools Version: 26.0.2 SDK Platform Tools Version: 26.0.0 SDK Build Tools Version: 26.0.1

Java SDK: /usr java version "1.8.0_121" Java(TM) SE Runtime Environment (build 1.8.0_121-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)

Android Designer EPL code available here: https://github.com/xamarin/AndroidDesigner.EPL

=== Xamarin Inspector ===

Version: 1.2.2 Hash: b71b035 Branch: d15-1 Build date: Fri, 21 Apr 2017 17:57:12 GMT

=== Xamarin.Mac ===

Version: (Visual Studio Enterprise)

=== Build Information ===

Release ID: 701001297 Git revision: 9c5299666538b2f8baf501418a5c064d784d64da Build date: 2017-08-07 11:29:35-04 Xamarin addins: 3bb0c32a14f1b7e368bf5ac53a84c3581c019391 Build lane: monodevelop-lion-d15-3

=== Operating System ===

Mac OS X 10.12.5 Darwin 16.6.0 Darwin Kernel Version 16.6.0 Fri Apr 14 16:21:16 PDT 2017 root:xnu-3789.60.24~6/RELEASE_X86_64 x86_64

=== Enabled user installed addins ===

NuGet Package Management Extensions 0.12.2
Comment 1 Paul DiPietro [MSFT] 2017-08-28 16:06:06 UTC
Also tested this against the latest nightly build where the issue still appears to occur.