Hi,
I would like to achive below tasks in my app ,
1) Annotate Wifi networks in the WiFi network scanner (Display WiFi networks in the iOS X network scanner with a little tag that displays something (your company name, for example) under the SSID name.)
2) Authenticate for WiFi Hotspots in backgorund .
I am able see my binary signed with NEHotspotHelper Entitlements also i have added network-authentication background mode to the Info.plist
Referred link https://forums.developer.apple.com/thread/9015 , https://forums.developer.apple.com/message/30660#30660
My current code is pasted below . registerWithOptions is returning true and handler code is called in backgorund and when user scans Wifi list .
NSDictionary* options = [NSDictionary dictionaryWithObjectsAndKeys:@"Connect Here",kNEHotspotHelperOptionDisplayName, nil];
dispatch_queue_t queue = dispatch_queue_create("com.my.NewtworkExt", 0);
BOOL returnType = [NEHotspotHelper registerWithOptions:options queue:queue handler: ^(NEHotspotHelperCommand * cmd) {
if(cmd.network) {
NEHotspotNetwork* network = cmd.network;
if( (cmd.commandType == kNEHotspotHelperCommandTypeEvaluate || cmd.commandType == kNEHotspotHelperCommandTypeFilterScanList ) {
[network setConfidence:kNEHotspotHelperConfidenceHigh];
}
}
}];
Please provide me some sample code/ steps to achive above tasks.