Open salvadorjesus opened 7 months ago
Could you try the resulting NuGet from #2132 to verify this fix works?
Could you try the resulting NuGet from #2132 to verify this fix works?
Has the nuget been generated automatically somewhere with your pull request? I have trouble compiling the nuget locally.
Yes you should be able to go to this page on Azure DevOps, click on the artifact that says nuget, download it and install it from a local folder.
@jfversluis , it works!
Thank you!
Description
Connectivity.ConnectivityChanged
handler does not work when targeting API 34 on Android 14 phones / emulators.Other combinations of API levels and Android versions seem to work.
This is the same bug already reported and fixed in Maui: Adding a Connectivity.ConnectivityChanged handler does not work on Android 14 #19949.
Code snippet
Adding the handler
Do not call the method:
Steps to Reproduce
Download and deploy the reproduction repo.
Target API 33 or run it on an Android 13 emulator. When you make changes on the connectivity (switch flight mode on and off), the line 'connectivity changed' appears on the console (expected behavior).
When compiling for API 34 and running in an Android 14 emulator, nothing appears on console (
Connectivity_ConnectivityChanged
is never reached).Reproduction Link
Reproduction repo.