10

I want to check WIFI signal strength to display some kind of message for weak WIFI signal.

I fount that it is not possible in iOS 8 and older.

Is it possible to get wifi signal strength in iOS 9? and if answer is yes then How?

Lorenzo
  • 3,097
  • 2
  • 27
  • 51
Ganesh Ubale
  • 637
  • 1
  • 6
  • 9

3 Answers3

8

Yes , it is possible in iOS 9.Look into NEHotspotNetwork

enter image description here

Teja Nandamuri
  • 10,890
  • 6
  • 56
  • 103
  • 1
    The signal strength returned is a percentage value between 0.0 to 1.0. How to efficiently convert this value to dBs or dBm? – Shane D Feb 07 '17 at 11:10
  • Can we test signal strength of cellular network with NEHotspotNetwork if not please suggest how to check signal strength on cellular network. thanks – user100 Mar 22 '17 at 07:47
  • First, register your app as Hotspot helper. (forums.developer.apple.com/message/30657#30657) – Josiah Coad May 11 '22 at 20:56
6

Register your app as Hotspot helper. (forums.developer.apple.com/message/30657#30657)

#import <NetworkExtension/NetworkExtension.h>

for(NEHotspotNetwork *hotspotNetwork in [NEHotspotHelper supportedNetworkInterfaces]) {
    NSString *ssid = hotspotNetwork.SSID;
    NSString *bssid = hotspotNetwork.BSSID;
    BOOL secure = hotspotNetwork.secure;
    BOOL autoJoined = hotspotNetwork.autoJoined;
    double signalStrength = hotspotNetwork.signalStrength;
}
pkc456
  • 8,256
  • 34
  • 50
  • 104
  • 3
    The signal strength returned is a percentage value between 0.0 to 1.0. How to efficiently convert this value to dBs or dBm? – Shane D Feb 07 '17 at 11:10
  • Can we test signal strength of cellular network with NEHotspotNetwork if not please suggest how to check signal strength on cellular network. thanks – user100 Mar 22 '17 at 07:47
0

It is, but you need permission from Apple. Once Apple allows you to use the HotspotHelper framework, you'll be able to create profiles with the hotspot helper entitlements. Check this post: How to get Wifi SSID in iOS9 after CaptiveNetwork is deprecated and calls for Wifi name are already blocked

Community
  • 1
  • 1
Pablo A.
  • 1,994
  • 1
  • 16
  • 27