CNSetSupportedSSIDs returning false/ not working correctly?
<p>I tried to use CaptiveNetwork in order to replace the web sheet that for user authentication with the network. The method is CNSetSupportedSSIDs.
I tried to add the list, but the web sheet for user authentication still keeps popping up every time I open up my App.
I tried to debug it and I realized that I keep getting the return Value as FALSE.</p>

<p>This is my Code:</p>

<pre><code>-(void)updateSSIDlist

{
[[NSNotificationCenter defaultCenter] postNotificationName:@"ssidInitStarted" object:nil    userInfo:nil];
 ATT_Remote_Access_Wifi_ClientAppDelegate *delegate = (ATT_Remote_Access_Wifi_ClientAppDelegate *)[[UIApplication sharedApplication] delegate];

delegate.ssidInitFinished = NO;
Hotspots *h = [Hotspots defaultHotspots];
NSArray *ssids2 = [h uniqueSSIDs];
NSLog(@"ssids we're shoving down into the system config for iOS to leave alone: %@", [ssids2 description]); 

bool ok = CNSetSupportedSSIDs((CFArrayRef) ssids2);

if(ok)
 {
  [[NSNotificationCenter defaultCenter]   postNotificationName:@"ssidInitCompleted" object:nil userInfo:nil];
NSLog(@"completed");    
}
else
{
 [[NSNotificationCenter defaultCenter] postNotificationName:@"ssidInitFailed" object:nil userInfo:nil];
NSLog(@"failed"); 
}

delegate.ssidInitFinished = YES;
delegate.dbIsBusy = NO;
 }
</code></pre>

<p>I searched a LOT, but I couldn't find any correct examples or documentation on this.
I also tried the below link example, but even that retuned the same results.</p>

<p>Any help is Appreciated! Thanks!</p>
