-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows: Connectivity check sometimes return NetworkAccess.Unknown #17270
Comments
Thank you, we'll take a look at this. We'll see if we can come up with a reproduction on our side for now. |
Repro sample confirmed in this repo https://github.com/breenbob/MauiWindowsConnectivityIssue |
We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process. |
Related with microsoft/WindowsAppSDK#2965 |
Copy of same comment posted #2965
Laptop running: Windows 10 Enterprise 19045.3570 I can't keep calling my fetch data API service on the Main thread as it blocks the UI thread - this seems like a major issue. |
I have a workaround for the above issue when checking Connecivity on Windows 10. Essentially you need to ensure all Connectivity checks are done on the Main thread. Example can seen here. |
Can you give me a small reproduceable sample? I'm having a difficult time with this on the latest version of the WinSDK + Maui |
Hi @Foda the repro sample provided above is not enough ? #17270 (comment) and this one https://github.com/breenbob/MauiWindowsConnectivityIssue |
I was unable to repro on Win11 on Maui 7 and Maui 8. I don't have a Win10 machine on-hand. Could you try upgrading to Maui 7 or 8 and see if the issue still happens on your machine? |
Hi @unombun. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. 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. |
Update: finally able to repro on latest w/ Win10 :) |
This issue has been automatically marked as stale because it has been marked as requiring author feedback 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. |
bad bot! |
Description
On Windows checking connectivity returns incorrect value of NetworkAccess.Unknown.
There is this already closed issue: #9972
But this for sure is not fixed because I can still reproduce it.
Steps to Reproduce
Here is the tricky part. I cannot provide any particular repro steps. In my app this can reproduce in some particular screens, in other happens only sometimes.
I tried create a demo sample app but I could not reproduce there.
Of course I tried calling on the main thread the check as a suggestions made in the #9972. But sometimes it works, sometimes not.
It happens also with .Net 8 - preview 7.8842
Link to public reproduction project repository
No sample
Version with bug
7.0.92
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
No response
Did you find any workaround?
No
Relevant log output
The text was updated successfully, but these errors were encountered: