According to the instruction on your site, we can finally retrieve Network Signal Strength information as expected after being added into Network Extension Entitlement list. That sounds great! 🙂
However, there is still one concern that we cannot get the update signal strength when the Network signal changes constantly.
Could you please specify which function/method we should use to get the update data?
For details, here is our current code to get the update:
NSMutableDictionary *options= [[NSMutableDictionary alloc] init];
[options setObject:@"Hotspot" forKey:kNEHotspotHelperOptionDisplayName];
BOOL returnType = [NEHotspotHelper registerWithOptions:options queue:dispatch_get_main_queue() handler: ^(NEHotspotHelperCommand * cmd) {
// our implementation code here cannot be processed even though the returnType == TRUE
}];
.........
//GET NETWORK
NSArray * networkInterfaces = [NEHotspotHelper supportedNetworkInterfaces];
NEHotspotNetwork *network = [networkInterfaces lastObject];
double signalStrength = network.signalStrength; // the value of network.signalStrength is not updated constantly here
In addition, I'm concerned that we can retrieve the history of 24-hour Online Status or not?
Looking forward to receiving your advice,😉
Thanks,
Regarding the 1st issue, our issue is that we cannot get live updates of the signal strength although I am still managing the currently connected Wi-Fi.
Could you please point out what wrong in my code that makes me unable to retrieve the live updates?
You should confirm that:
returns the network in question+supportedNetworkInterfaceswhen you call
on the network returned by-isChosenHelper
, it returns true+supportedNetworkInterfaces
If both of the above are correct and you still don’t get signal strength updates, I’ve no idea what’s going on. You can either file a bug about this or, if you still think it’s something wrong with your code, open a DTS tech support incident and I can take a look in a more formal context.
And what I meant the "24-hour Online Status" is some kind of like the history of 24-hour Internet usage where there is up&down in the network connectivity as …
iOS has no API that returns this sort of information on your behalf.
To capture this information yourself you’d have to run periodically in the background, which isn’t something that iOS supports in general.
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"