Skip to content

Navigation data does not get passed on first navigation after app is loaded or resumed #10509

@Muhammad-I

Description

@Muhammad-I

Description

When using the QueryProperty attribute to pass navigation data, the first call to Shell.Current.GoToAsync does not pass the navigation data to the next page. The issue appears to only occur after the app is loaded or resumed. Navigation data is passed correctly from the second navigation onward.

Steps to Reproduce

  1. Create a new MAUI app.
  2. Add a new content page which accepts navigation data using the QueryProperty attribute.
  3. Navigate to the page, passing a value to the query property.
  4. Expected behaviour: the value passed to the query property should be available in the target page but this is missing.

Link to public reproduction project repository

https://github.com/Muhammad-I/maui-navigation-data-issue

Version with bug

Unknown/Other (please specify)

Last version that worked well

Unknown/Other

Affected platforms

Android, I was not able test on other platforms

Affected platform versions

Android 12.1 - API 32 (using emulator)

Did you find any workaround?

No

Relevant log output

dotnet workload list
maui-android 6.0.536/6.0.400 VS 17.3.32922.545

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-controls-shellShell Navigation, Routes, Tabs, Flyoutarea-navigationNavigationPagepartner/syncfusionIssues / PR's with Syncfusion collaborationplatform/androids/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions