maui
maui copied to clipboard
Connectivity.Current.ConnectivityChanged += Connectivity_ConnectivityChanged; event is not raised
Description
Seems to be only in Android 14
Steps to Reproduce
- Create a new project
- Override OnStart in App.xaml.cs
- Add event handler: Connectivity.Current.ConnectivityChanged += Connectivity_ConnectivityChanged;
Version with bug
8.0.7 SR2
Is this a regression from previous behavior?
Yes, this used to work in Xamarin.Forms
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 14
Did you find any workaround?
No
Relevant log output
No response
This should be fixed by https://github.com/dotnet/maui/pull/19968, which is merged but not in a stable build yet. Could you try the nightly builds?
Hi @FrancescoGiancristofaro. 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.
Hi in what version is it expected to be? thanks.
Hi @FrancescoGiancristofaro. We have added the "s/try-latest-version" label to this issue, which indicates that we'd like you to try and reproduce this issue on the latest available public version. This can happen because we think that this issue was fixed in a version that has just been released, or the information provided by you indicates that you might be working with an older version.
You can install the latest version by installing the latest Visual Studio (Preview) with the .NET MAUI workload installed. If the issue still persists, please let us know with any additional details and ideally a reproduction project provided through a GitHub repository.
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.
In terms of stable, my guess would be whatever the next service release is? I'm not on the MAUI team and I don't know the exact timetable and release schedule for when fixes roll out.
But you can try a nightly build since that does include the PR code I linked to, so you can try it now to see if it works, then when it does get release in a stable release you can switch back to it.