maui icon indicating copy to clipboard operation
maui copied to clipboard

Connectivity.Current.ConnectivityChanged += Connectivity_ConnectivityChanged; event is not raised

Open FrancescoGiancristofaro opened this issue 1 year ago • 5 comments

Description

Seems to be only in Android 14

Steps to Reproduce

  1. Create a new project
  2. Override OnStart in App.xaml.cs
  3. 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

FrancescoGiancristofaro avatar Feb 16 '24 14:02 FrancescoGiancristofaro

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?

drasticactions avatar Feb 17 '24 09:02 drasticactions

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.

ghost avatar Feb 17 '24 09:02 ghost

Hi in what version is it expected to be? thanks.

AramMar avatar Feb 19 '24 12:02 AramMar

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.

ghost avatar Feb 19 '24 15:02 ghost

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.

drasticactions avatar Feb 20 '24 06:02 drasticactions