Get wifi list from xamarin form
Are the functions restricted depending on the Android version?
I succeeded in getting the wifi list in Android 5.1 version. If you upgrade to Android 10 version and run it, the Wi-Fi list is not imported.
Is the function limited by upgrading the version? Or is it possible to get the list using another API?
Hi @영훈 정 , You called
WifiManager.getScanResults（）to get the WIFI list, right? Please check if you have set the correct permission for Android 10 :
If your app is targeting Android 10 (API level 29) SDK or higher, your app has the
If your app is targeting SDK lower than Android 10 (API level 29), your app has the
Your app has the
Location services are enabled on the device (under Settings > Location).
For more details, please refer to Wi-Fi scanning overview | Android Developers
Sign in to comment
Permission settings were no problem.
One question is, it works normally in Android 5.1.
However, it does not output normally when operating in Android 11.
Could you please provide some code snippets about how you get the WIFI list? Is there any error message(or empty instance) when you debug on the Android 11 device?