vishnuvarthan
vishnuvarthan

Reputation: 512

Getting WIFI Signal strength in iPhone

I know this is a duplicate of many similar questions.But none of them were clear they where not giving proper solutions.My question is how to get WiFi signal strength in iOS devices?. I know it has done using Private API's but I don't know how to use?. Please can anyone help me please?

Upvotes: 1

Views: 2573

Answers (2)

pkc456
pkc456

Reputation: 8506

For ios9+

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;
}

Reference:- https://stackoverflow.com/a/32971064/988169

Upvotes: 1

Shobhakar Tiwari
Shobhakar Tiwari

Reputation: 7892

Apple restrict (wireless private api) to use private api to find the strenth of wifi .

Upvotes: 0

Related Questions