openvpn_flutter icon indicating copy to clipboard operation
openvpn_flutter copied to clipboard

Connection time tracking when app is terminated

Open 0ttik opened this issue 3 years ago • 4 comments

Following #12 issue. If we exit and re-enter app we could use OpenVPN#isConnected method. But how do I keep track of the time VPN is being connected?

For now I can only think about making some kind of foreground service tracking time for which app is being connected. Are there any way to get this info from VPN state from OS itself?

0ttik avatar Jul 04 '22 22:07 0ttik

@nizwar onVpnStatusChanged: not given any data when the app is terminated and reopened on the iOS.Is there any way to get this?

NilupulTreinetic avatar Aug 15 '22 11:08 NilupulTreinetic

@0ttik did you able to fix that issue? any luck

NilupulTreinetic avatar Aug 17 '22 08:08 NilupulTreinetic

@0ttik did you able to fix that issue? any luck

I'm just using shared_preferences to store connection start timestamp and then calculate connection duration.

0ttik avatar Aug 19 '22 05:08 0ttik

Is there any update on this issue?

iamadeeb avatar Feb 03 '23 12:02 iamadeeb