WiFiFlutter icon indicating copy to clipboard operation
WiFiFlutter copied to clipboard

removeWifiNetwork does not work on Android 10

Open francesco98 opened this issue 1 year ago • 0 comments

Hello,

I think that there is a problem at this line of the removeWifiNetwork Android implementation. https://github.com/flutternetwork/WiFiFlutter/blob/8457ae740208e258108a1206186e8648cb1286c0/packages/wifi_iot/android/src/main/java/com/alternadom/wifiiot/WifiIotPlugin.java#L1230 https://github.com/flutternetwork/WiFiFlutter/blob/8457ae740208e258108a1206186e8648cb1286c0/packages/wifi_iot/android/src/main/java/com/alternadom/wifiiot/WifiIotPlugin.java#L1216

It seems that there are 2 checks:

  • Build.VERSION.SDK_INT < Build.VERSION_CODES.Q
  • Build.VERSION.SDK_INT >= Build.VERSION_CODES.R

but what if the build version is Q? I'm indeed having issues only on Android 10 devices.

francesco98 avatar Oct 13 '24 14:10 francesco98