问题
I have an iOS app that I had intended on adding a feature which shows WiFi bars to show the user their WiFi signal strength while the app is in full screen. As I have learned recently, it is not possible to include a feature in an iOS app which allows you to show the signal strength of the connected wireless network since Apple does not allow this unless you sign up to register for Apple's NEHotspotHelper and this is not a normal use case for this API.
To work around this issue, is there some way of still showing the user that their WiFi connection isn't good? Could I measure the latency of the connection is some way to show an alert saying the connection is bad? Are there any other symptoms of a poor wireless connection that I could measure to still implement this function in my app?
来源:https://stackoverflow.com/questions/62613242/working-around-the-issue-of-being-unable-to-acquire-wifi-signal-strength-in-ios