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
- Create a new MAUI app.
- Add a new content page which accepts navigation data using the
QueryProperty attribute.
- Navigate to the page, passing a value to the query property.
- 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
Description
When using the
QueryPropertyattribute to pass navigation data, the first call toShell.Current.GoToAsyncdoes 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
QueryPropertyattribute.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