Post

Replies

Boosts

Views

Activity

Inconsistency in displaying WiFi annotations
We are using NEHotspotHelper to annotate the networks when the user opens settings page. The annotations are not getting displayed for My Networks section on the settings page (the networks user has already connected to atleast once shows up in this section), while the annotations are visible for Other Networks (this is the access point list which the user has never connected to). Also we have observed that if we click on the "i" button next to the wifi access point name and come back to the wifi settings page again, then the annotation shows up again We are using the following code - dispatch_queue_t hotspotQueue = dispatch_queue_create("hotspot_queue", 0); NSString *annotation = @"Custom annotation"; NSDictionary *hotspotHelperRegisterOptions = [NSDictionary dictionaryWithObjectsAndKeys:annotation, kNEHotspotHelperOptionDisplayName, nil]; BOOL returnVal = [hotspotHelperClass registerWithOptions:hotspotHelperRegisterOptions                           queue:hotspotQueue                          handler: ^(NEHotspotHelperCommand * cmd) {   if(cmd.commandType == kNEHotspotHelperCommandTypeFilterScanList) {     NSMutableArray<NEHotspotNetwork*> *annotatedNetworks = [[NSMutableArray alloc] initWithCapacity:0];     for(NEHotspotNetwork* network in cmd.networkList){       [network setConfidence:kNEHotspotHelperConfidenceHigh];       [annotatedNetworks addObject:network];     }     NEHotspotHelperResponse *response = [cmd createResponse:kNEHotspotHelperResultSuccess];     [response setNetworkList:annotatedNetworks];     [response deliver];     return;   }];
1
0
409
Dec ’21