mojira.dev
MCPE-47634

Android version of Bedrock doesn't recognize wifi hotspot as wifi network and doesn't scan for local games

I read on StackOverflow that you can only recognize wifi hotspots hosted on the same device using some reflection hacks though. I will post the code for it.

Related issues

Attachments

Comments

migrated
[media]
migrated
WifiManager wifimanager = (WifiManager) context.getSystemService(context.WIFI_SERVICE);     
Method method = wifimanager.getClass().getDeclaredMethod("isWifiApEnabled");
method.setAccessible(true);
boolean wifiEnabled = (boolean) method.invoke(wifimanager);
[Mojang] Mega_Spud (Jay)

Thank you for your report!
We're actually already tracking this issue at MCPE-43626, so we will resolve and link this ticket as a duplicate.

If you would like to add a vote and any extra information to the main ticket it would be appreciated.

If you haven't already, you might like to make use of the search feature, to see if the issue has already been mentioned.

Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

migrated

(Unassigned)

Unconfirmed

Android

Android 8.1, applies to other versions too

1.11.4

Retrieved