Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8570295
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T18:31:33+00:00 2026-06-11T18:31:33+00:00

I am doing research to find the best way to use the captive network

  • 0

I am doing research to find the best way to use the captive network for iOS. It appears that what this does, correct me if I am wrong, is allows the user to input different ssid’s and passwords that can be used for automatic login when that network becomes available. If this is so, what would be the best way to accomplish the following, read ssid and password from a user and connect him to that wifi network or is that even possible.

So far all I am doing is pulling out the currently connected network with this:

NSArray *ifs = (__bridge_transfer id)CNCopySupportedInterfaces();
id info = nil;

for (NSString *ifnam in ifs) {

    NSLog(@"ifnam = %@", ifnam);

    info = (__bridge_transfer id)CNCopyCurrentNetworkInfo((__bridge_retained CFStringRef)ifnam);

    if (info && [info count]) {
        break;
    }
}

NSLog (@"SSID: %@", [ info objectForKey"@"SSID" ]);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T18:31:34+00:00Added an answer on June 11, 2026 at 6:31 pm

    A “Captive Network” is one like you find in hotels or Starbucks, where the WiFi connection is open but you need to go through a logon or ‘I accept the conditions’ page in order to connect to any web sites.

    Normally, when you connect to such a network, the IOS Settings app will put up a web form to complete the logon. The purpose of the CN APIs is to allow your app to do the authentication instead of putting up a web form.

    Your question asks about reading the SSID from the user: this doesn’t seem too useful since the Settings app already allows users to specify an arbitrary SSID and then to login with a password. The Captive Network API would only be useful if your app knows exactly how to log into the network, in which case it can know the SSID also. You can get the password from the user using the usual NSTextField.

    Note also that IOS doesn’t start your app whenever the network is connected: this API only works when your app is already running.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am doing a research here to find you the best way to format
I've been doing a lot of research trying to find the best way to
I've been doing a lot of research on how best to write correct network
I've been doing some research on path-dependent types. The best description I could find
After doing some research on this issue, I couldn't find any satisfying fix. The
I've been doing some research to find a solution to use $.ajax with JSON
I am doing some research to find out the best and most efficient method
I have been doing some research on test driven development and find it pretty
I am doing some research related to Java NIO. I need to find some
I think it is not complicated but after doing some research I can't find

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.