How to get the user name and password of manual proxy server in iPhone

I have a requirement where I need to pass the custom proxy details to get the data from the server . For this purpose I need to access the proxy username and password located in the device wifi settings .

I have used CFNetworkCopySystemProxySettings() and able to get port and proxy server .
Is there any way I could access username and password ?

Is there any way I could access username and password ?

No. Way back in the day you could get that info from the keychain but that was never possible on iOS and no longer possible on macOS.

You have two options here:
  • Use a networking API that deals with proxies automatically (for example, NSURLSession and Network framework)

  • Ask the user

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
How to get the user name and password of manual proxy server in iPhone
 
 
Q