exendahal / maui_wifi_manager

.NET MAUI Wi-Fi Manager is solution for Wi-Fi management features. With these APIs, effortlessly connect, add, and retrieve Wi-Fi network information in cross-platform MAUI applications.
https://github.com/exendahal/WifiManagerMAUI
MIT License
19 stars 5 forks source link

I get <unknown ssd> in android 10 #4

Closed ltemimi closed 3 months ago

ltemimi commented 3 months ago

When I uses var response = await CrossWifiManager.Current.GetNetworkInfo(); I get unknown SSD

when I use var response2 = await CrossWifiManager.Current.ScanWifiNetworks(); I get an empty list

My permissions:

'''<?xml version="1.0" encoding="utf-8"?>

'''
ltemimi commented 3 months ago

I fixed it by adding

''' private static async Task EnsurePermissionsAsync() { var status = await Permissions.CheckStatusAsync(); if (status != PermissionStatus.Granted) { status = await Permissions.RequestAsync(); } } '''

ltemimi commented 3 months ago

thanks for the nuget package