I'm working on a VPN client using the NEVPNManager.
When I test a connection with incorrect credentials time to time I can read the error message. But more often the alert is disappeared faster than for one second.
In the console logs, there are the following lines:
11:58:40.040261 +0300 assertiond Client relinquished <BKProcessAssertion: 0x102d2aee0; "Deliver Message" (suspend:10s); id:…83F2FD6CC241>
11:58:40.040318 +0300 assertiond Client relinquished <BKProcessAssertion: 0x102d225c0; "systemAnimationFence" (finishTask:180s); id:…B4051793443F>
11:58:40.040375 +0300 assertiond [MyApp:1607] Deactivate assertion: <BKProcessAssertion: 0x102d2aee0; "Deliver Message" (suspend:10s); id:…83F2FD6CC241>
11:58:40.040432 +0300 assertiond [MyApp:1607] Setting jetsam priority to 10 [0x10108]
11:58:40.040785 +0300 assertiond [MyApp:1607] Remove assertion: <BKProcessAssertion: 0x102d2aee0; "Deliver Message" (suspend:10s); id:…83F2FD6CC241>
11:58:40.040946 +0300 assertiond [MyApp:1607] Deactivate assertion: <BKProcessAssertion: 0x102d225c0; "systemAnimationFence" (finishTask:180s); id:…B4051793443F>
11:58:40.041002 +0300 assertiond [MyApp:1607] Setting jetsam priority to 10 [0x10100]
11:58:40.041166 +0300 assertiond [MyApp:1607] Remove assertion: <BKProcessAssertion: 0x102d225c0; "systemAnimationFence" (finishTask:180s); id:…B4051793443F>
11:58:40.041852 +0300 SpringBoard enabling activity
11:58:40.041993 +0300 SpringBoard activity info changed to slow=0 sync=0 identifier=net.myapp.iphone
11:58:40.044298 +0300 assertiond Client relinquished <BKProcessAssertion: 0x102c130f0; "systemAnimationFence" (finishTask:180s); id:…FF8F666AEDF5>
11:58:40.044449 +0300 assertiond [SpringBoard:55] Deactivate assertion: <BKProcessAssertion: 0x102c130f0; "systemAnimationFence" (finishTask:180s); id:…FF8F666AEDF5>
11:58:40.044616 +0300 assertiond [SpringBoard:55] dump assertions count:2 HWM:4 (deactivateAssertion): {
<BKProcessAssertion: 0x102d14710; "FBSystemApp" (continuous:inf); id:…28F8C6F04A0D> [active]
<BKProcessAssertion: 0x102d0d820; "Resume" (activation:inf); id:…0AF1B9B4D01D> [active]
}
11:58:40.044776 +0300 assertiond Updating PowerAssertion on SpringBoard:55
11:58:40.045090 +0300 assertiond [SpringBoard:55] Remove assertion: <BKProcessAssertion: 0x102c130f0; "systemAnimationFence" (finishTask:180s); id:…FF8F666AEDF5>
11:58:40.045193 +0300 assertiond Updating PowerAssertion on SpringBoard:55
11:58:40.047155 +0300 dasd Activity not tracked as being started for parameters <private>, ignoring it
11:58:40.051796 +0300 SpringBoard Deactivated alertItem: <SBUserNotificationAlert: 0x101878be0; title: VPN Connection; source: nesessionmanager; pid: 1925>
11:58:40.059207 +0300 assertiond -[BKAssertion dealloc] - <0x102d2aee0>
A curious thing that I can easily reproduce the issue with the NEVPNProtocolIPSec. At the same moment, with the NEVPNProtocolIKEv2 the system presents alerts for a reasonable time.