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


WifiManager wifimanager = (WifiManager) context.getSystemService(context.WIFI_SERVICE);
Method method = wifimanager.getClass().getDeclaredMethod("isWifiApEnabled");
method.setAccessible(true);
boolean wifiEnabled = (boolean) method.invoke(wifimanager);
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