Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page.OnAppearing and OnDisappearing event on Windows is raised too often #10161

Open
rogerbriggen opened this issue Sep 16, 2022 · 4 comments
Open
Labels
area-core-lifecycle XPlat and Native UIApplicationDelegate/Activity/Window lifecycle events area-navigation NavigationPage platform/windows 🪟 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Milestone

Comments

@rogerbriggen
Copy link

Description

OnAppearing and OnDisappearig are called as soon as there is another Application hiden some part of the MAUI application.

In the Xamarin documentation (i did not find the events in the maui documentation) https://docs.microsoft.com/en-us/dotnet/api/xamarin.forms.page.ondisappearing?view=xamarin-forms#remarks it says, the events are not triggered by external application but just by navigation.

Steps to Reproduce

Link to public reproduction project repository

https://github.com/rogerbriggen/mauiAppearEventProblem

Version with bug

6.0.486 (current)

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

Windows 10

Did you find any workaround?

No

Relevant log output

No response

@rogerbriggen rogerbriggen added the t/bug Something isn't working label Sep 16, 2022
@rachelkang rachelkang added this to the Backlog milestone Sep 16, 2022
@ghost
Copy link

ghost commented Sep 16, 2022

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

@rachelkang rachelkang added the area-core-lifecycle XPlat and Native UIApplicationDelegate/Activity/Window lifecycle events label Sep 16, 2022
@holecekp
Copy link

I have the same problem. I have two tabs and when I switch between them a few times OnAppearing starts to be very unreliable and it is executed many times (more than 50 times for each tab!!!). This causes performance problems.

On the other hand, I have an opposite problem on Android - OnAppearing is not executed at all when tabs are switched (probably related to #9531)

@Zhanglirong-Winnie
Copy link

Verified this issue with Visual Studio 17.7.0 Preview 1.0. Can repro on windows platform with sample project.
mauiAppearEventProblem-main.zip
10161

@pboisso
Copy link

pboisso commented Feb 28, 2024

Being bothered by this bug also. Any news on fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-core-lifecycle XPlat and Native UIApplicationDelegate/Activity/Window lifecycle events area-navigation NavigationPage platform/windows 🪟 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants