Hi, I use NEPacketTunnelProvider to create a always-on VPN tunnel in my AppExtension. In my case, the device need to send a heartbeat packet to the VPN server in order to keep tunnel alive. But sometimes the device will be kick-off by the server, beacause it can't connect to VPN server. My question is:
- Is there some way or mesure to reconnect the VPN server?
- I notice there are wake() and sleep() two methodes in NEPacketTunnelProvider, do they work in my case? What are they use for?