VPN stuck connecting state [IOS]

Hi,


I am working on a vpn application, need your help.


Step 1.

Open my VPN and create VPN profile (NETunnelProviderManager) and connected.

Step 2.

Disconnect VPN and force close app

Step 3.

Open another VPN app connected and disconnected (end session)

Step 4.

Open my VPN app and connect VPN

In this step alway received conecting state (NEVPNConnection I register notification NEVPNStatusDidChange)


There are 3 ways i tried to make vpn connected.

1. Reboot iphone

2. Re-install app

3. Delete VPN profile (NETunnelProviderManager.removeFromPreferences) and recreate profile


So, How can do to show debug log and resolve this issue.


Thank for your support.

  • Did you resolve this issue?

Add a Comment

Replies

Step 2.

Disconnect VPN and force close app

I presume that “force close app” means that you’re removing it from the multitasking UI by swiping up. I generally recommend against that as a test technique. Does the problem reproduce without that?

Step 4.

Open my VPN app and connect VPN

In this step alway received conecting state (

NEVPNConnection
I register notification
NEVPNStatusDidChange
)

What is your provider doing at this time? If you override the

-init
method and add a log point, do you see that called?

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Step 2: Yes, Kill by user (swiping up) or killed by system.

I see this log.

+[NEVPNManager mapError:]:383 The configuration was not saved because it was unchanged from the previously saved version