Skip to content
Discussion options

You must be logged in to vote

Just because I hate to find unanswered questions with this kind of message I will add the answer here for future people looking on how to do this...

remember that you need to have the location enabled

from API 27 (Android 8.1) you need to have just ACCESS_COARSE_LOCATION but from API 29 (Android 10) and on you need both ACCESS_COARSE_LOCATION and ACCESS_FINE_LOCATION

        WifiManager wifiManager = (WifiManager)Android.App.Application.Context.GetSystemService(Context.WifiService);
        WifiInfo info = wifiManager.ConnectionInfo;
        String ssid = info.SSID;

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@KieranMaclagan
Comment options

@plaurent-dev
Comment options

@Kristoffeh
Comment options

Comment options

You must be logged in to vote
2 replies
@mg-khawaja
Comment options

@renanpaiva64
Comment options

Answer selected by renanpaiva64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants