简体   繁体   中英

iOS: Detect if WIFI has been authenticated?

There are times when you connect to a Starbucks Wifi, the auth page does not automatically pop up. The auth page (the one where you press "Agree" to the Wifi terms) shows up when you start using Safari. Is there any way to detect if the auth page has already been shown on the device in my app?

Try to download a file somewhere, that you know will never move ( www.google.com ), and whose contents you already know (thats the hard part).

Compare the downloaded content with the content that should be downloaded, and you'll know you're on some authentication page or not.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM