You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can fix it in MauiEventsBinder by changing the initial part to this:
public void HandleApplicationEvents(Application application, bool bind = true)
{
if (bind)
{
// Attach element events to all existing descendants.
foreach (var descendant in application.GetVisualTreeDescendants().Skip(1))
{
if (descendant is VisualElement element)
{
OnApplicationOnDescendantAdded(application, new ElementEventArgs(element));
}
}
// Attach element events to all descendants as they are added to the application.
application.DescendantAdded += OnApplicationOnDescendantAdded;
application.DescendantRemoved += OnApplicationOnDescendantRemoved;
The reason is that iOS lifecycle event happens after the Shell has already been added to the application.
Hi, do we have confirmation this was released in 5.4.0? It appears the release notes didnt have it listed, but the readme source does.
I am testing my app using the repro steps available in the issue and not seeing AppShell.XYZ crumbs happening, only App.XYZ (we recently converted the main shell page and a few child pages from a frankenstein nav to all Shell and wanted to make sure we were getting the right crumbs). It could totally be an "us" problem, but I wanted to inquire if this merge was actually included in the 5.4.0 release. Thanks!
@daveschu it wasn't included in 5.4.0. That release was made March 13th and the fix for this issue was merged in the main branch March 17th. It looks like auto-merge broke the CHANGELOG.md file though. I'll get that fixed and we can make a 5.5.0 release that includes this.
Activity
albyrock87 commentedon Feb 24, 2025
You can fix it in
MauiEventsBinderby changing the initial part to this:The reason is that iOS lifecycle event happens after the
Shellhas already been added to the application.bitsandfoxes commentedon Feb 26, 2025
Hey @albyrock87! Thank you so much for reaching out! Would you feel comfortable opening up a PR for this?
daveschu commentedon Mar 28, 2025
Hi, do we have confirmation this was released in 5.4.0? It appears the release notes didnt have it listed, but the readme source does.
I am testing my app using the repro steps available in the issue and not seeing AppShell.XYZ crumbs happening, only App.XYZ (we recently converted the main shell page and a few child pages from a frankenstein nav to all Shell and wanted to make sure we were getting the right crumbs). It could totally be an "us" problem, but I wanted to inquire if this merge was actually included in the 5.4.0 release. Thanks!
jamescrosswell commentedon Mar 31, 2025
@daveschu it wasn't included in 5.4.0. That release was made March 13th and the fix for this issue was merged in the main branch March 17th. It looks like auto-merge broke the CHANGELOG.md file though. I'll get that fixed and we can make a 5.5.0 release that includes this.
daveschu commentedon Mar 31, 2025
Awesome, appreciate that clarity and looking forward to the fix. Thanks!
jamescrosswell commentedon Apr 3, 2025
Hey @daveschu - just a heads up to say that 5.5.0 is available now.