Skip to content

MAUI Navigation Bug in ToastNotificationManagerCompat.OnActivated #20370

@vsfeedback

Description

@vsfeedback

This issue has been moved from a ticket on Developer Community.


When the button that says "Click me" is clicked a new toast notification will appear. Click on the toast notification and it should show the details page. Placing a breakpoint there you will see the code is being executed however, nothing happens on the screen until AFTER you click the settings button. If you click the settings button after clicking the toast notification, then both the details page and settings page show on the screen. The details page is behind the settings page and when you click back you will see details not the main page. I have tried both lines of code below with same result there seems to be a bug when calling it from ToastNotificationManagerCompat.OnActivated.

App.Current.MainPage.Navigation.PushAsync(details);
Navigation.PushAsync(details);

Started with this tutorial but trying to switch to another page when toast is clicked:
https://github.com/gurrenm3/Toast-Notifications-with-.Net-Maui/


Original Comments

Feedback Bot on 1/29/2024, 00:10 AM:

(private comment, text removed)


Original Solutions

(no solutions)

Reproduction

https://github.com/gurrenm3/Toast-Notifications-with-.Net-Maui/

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-navigationNavigationPages/needs-infoIssue needs more info from the authort/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions