Swift version is 5
Post
Replies
Boosts
Views
Activity
As roee84 pointed out. My scenario is VPN is already cinfigued and running. Containing app is no longer running in background (as iOS kill background apps). Is there a way in NEPacketTunnelExtension itself, where it checks for internet and disables?I have observer registered but it does not recieve the call back becuase app is not running.Strangely, when Wifi is off, I cannot toggle VPN to ON state (manually). But when VPN is already ON then I can switch off wifi. VPN remains connected. This causing issues with other apps.
I found the fix. Use NWPathMonitor and in case no network event, called cancelTunnelWithError
Thank you. Once user install the app from AppStrore, will the data persist from TestFlight installed app? Like log-in information, etc... will persist in app from AppStore?
Thank you for your response. We are thinking of using a hybrid approach to increase our chances of getting triggered in background. So apart from above mentioned 2 options, are there any more iOS provided techniques we can leverage?