Native embedding: OnAppearing override not invoked #11281
Labels
area-core-lifecycle
XPlat and Native UIApplicationDelegate/Activity/Window lifecycle events
i/great-reporter
This issue is opened by an author who is known to open high-quality issues
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
t/native-embedding
Milestone
Description
I've been playing around with native embedding. In native apps on Android, iOS, and Windows, the
ContentPage.OnAppearing
override isn't being invoked on navigation, whereas it is in .NET MAUI apps. This makes it more difficult to load data on page load, which many people tend to do inOnAppearing
.This behaviour is identical in .NET 6 and 7, so I suspect it's more an omission than a regression.
Steps to Reproduce
The breakpoint is never hit.
Link to public reproduction project repository
https://github.com/davidbritch/dotnet-maui-issues/tree/main/Embedding
Version with bug
.NET 7 GA (also occurs in .NET 6)
Last version that worked well
Don't think it's ever worked.
Affected platforms
iOS, Android, Windows
The text was updated successfully, but these errors were encountered: