dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
21.97k stars 1.71k forks source link

Android Back Button Minimizes App When BlazorWebView Inside RefreshView #23740

Closed samanson123 closed 6 hours ago

samanson123 commented 1 month ago

Description

I was trying to implement RefreshView functionality in my BlazorWebView however down the line I realised that my back button presses when testing on Android were no longer navigating as I expected them to do in my blazor components.

After working my way back, I found the RefreshView to be the root cause of the issue. Removing the RefreshView fixed the issue and added it back in caused the issue again. I had several navigation based methods across my Blazor Hybrid application such as NavigationLock on one component and a subscribe to the NavigationManager LocationChanged event on another and neither of them fire when the BlazorWebView is surrounded by the RefreshView.

Steps to Reproduce

  1. Create MAUI Blazor Hybrid application and ensure you have at least 2 pages to navigate between with Navigation Manager.
  2. Navigate between pages without a RefreshView control surrounding the BlazorWebView and test back button on android. Will navigate back to the previous page.
  3. Change the BlazorWebView to have a RefreshView surrounding it and repeat step 2. Will minimise the app to the background.

Link to public reproduction project repository

No response

Version with bug

8.0.61 SR6.1

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Android, I was not able test on other platforms

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

No response

github-actions[bot] commented 1 month ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

samanson123 commented 1 month ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

Issue is briefly commented about in #19091

RoiChen001 commented 3 weeks ago

@samanson123 Could you provide us with a sample project so we can investigate it? Looking forward to your reply!

dotnet-policy-service[bot] commented 1 week ago

Hi @samanson123. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md

This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

dotnet-policy-service[bot] commented 4 days ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback to reproduce the issue but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.