openvpn_flutter icon indicating copy to clipboard operation
openvpn_flutter copied to clipboard

Auto Disconnect Method?

Open ferdigokdemir opened this issue 1 year ago • 3 comments

Has an auto disconnect method with duration? For example: disconnect in 3 hours.

ferdigokdemir avatar Jul 22 '24 07:07 ferdigokdemir

use workmanager

harunme3 avatar Jan 27 '25 14:01 harunme3

use workmanager

ı tried but not working. because vpn servise working different scope.

ferdigokdemir avatar Feb 04 '25 06:02 ferdigokdemir

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

shafiquecbl avatar Sep 04 '25 06:09 shafiquecbl