Auto Disconnect Method?
Has an auto disconnect method with duration? For example: disconnect in 3 hours.
use workmanager
use workmanager
ı tried but not working. because vpn servise working different scope.
Having this option would be a great addition, especially if paired with some notification support. I was able to achieve my goal using WorkManager, but since WorkManager does not work on iOS, I had to write code in Swift within the VPN extension. Having this option directly in the package would be much more suitable, as VPNService is already running. This way, we wouldn’t need to create a separate task and apply additional checks just to disconnect the VPN. @nizwar