captivenetwork

Captive portal on android device

吃可爱长大的小学妹 提交于 2019-11-28 20:32:15
问题 I am using my android device as a mobile web server. I want to direct every user that connects through my portable Android hotspot to a specific wellcome page. Does anybody know how to implement this technique in my device (I believe this is called the captive portal technique)? 回答1: I answer my own question until someone shares some useful information on how to implement the captive portal in a non-rooted device. At the moment I am not aware of such working solution. Captive portal works by

CNCopyCurrentNetworkInfo with iOS 13

只谈情不闲聊 提交于 2019-11-27 23:28:19
问题 Apple changed some things regarding WiFi with iOS 13. If you want to use CNCopyCurrentNetworkInfo your app needs to have one of the following Apps with permission to access location Your app is the currently enabled VPN app Your app configured the WiFi network the device is currently using via NEHotspotConfiguration Source: WWDC 19 session 713 I am configuring a network using NEHotspotConfiguration but I can not get the current SSID anymore after doing so. The following code worked fine with