You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/wifi_info_flutter/wifi_info_flutter/android/src/main/java/io/flutter/plugins/wifi_info_flutter/WifiInfoFlutter.java
if (Build.VERSION.SDK_INT == Build.VERSION_CODES.P
117
+
&& !grantedAccessFine
118
+
&& !grantedAccessCoarse) {
119
+
Log.w(
120
+
TAG,
121
+
"Attempted to get Wi-Fi data that requires additional permission(s).\n"
122
+
+ "To successfully get WiFi Name or Wi-Fi BSSID starting with Android P, additional to CHANGE_WIFI_STATE please ensure your app has one of the following permissions too:\n"
123
+
+ "- ACCESS_FINE_LOCATION\n"
124
+
+ "- ACCESS_COARSE_LOCATION\n"
125
+
+ "For more information about Wi-Fi Restrictions in Android 9.0 and above, please consult the following link:\n"
"Attempted to get Wi-Fi data that requires additional permission(s).\n"
135
+
+ "To successfully get WiFi Name or Wi-Fi BSSID starting with Android Q, please ensure your app has the CHANGE_WIFI_STATE and ACCESS_FINE_LOCATION permission.\n"
136
+
+ "For more information about Wi-Fi Restrictions in Android 10.0 and above, please consult the following link:\n"
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P && !gpsEnabled) {
147
+
Log.w(
148
+
TAG,
149
+
"Attempted to get Wi-Fi data that requires additional permission(s).\n"
150
+
+ "To successfully get WiFi Name or Wi-Fi BSSID starting with Android P, please ensure Location services are enabled on the device (under Settings > Location).\n"
151
+
+ "For more information about Wi-Fi Restrictions in Android 9.0 and above, please consult the following link:\n"
Copy file name to clipboardExpand all lines: packages/wifi_info_flutter/wifi_info_flutter/android/src/main/java/io/flutter/plugins/wifi_info_flutter/WifiInfoFlutterPlugin.java
0 commit comments