OpenVPNAdapter icon indicating copy to clipboard operation
OpenVPNAdapter copied to clipboard

OpenVPNInterfaceStats

Open HarunBahcel opened this issue 6 years ago • 4 comments

Hello, Packettunnelprovider is also how to retrieve incoming outbound bytes. Thank you.

HarunBahcel avatar Jul 14 '18 07:07 HarunBahcel

@ss-abramchuk Can you please help us to know how we can retrieve traffic stats?

Thanks

swati-daffodilsw avatar Aug 01 '18 11:08 swati-daffodilsw

OpenVPNAdapter has a couple of properties: interfaceStatistics and transportStatistics. Have you tried them?

ss-abramchuk avatar Aug 01 '18 11:08 ss-abramchuk

@ss-abramchuk : Is there any possibility to add observer for the above properties so that after creating connection , it can keep providing stats continuosly

swati-daffodilsw avatar Aug 06 '18 10:08 swati-daffodilsw

@swati-daffodilsw As far as I understood such a behaviour will be contradictory to iOS app extension workflow. Your app wakes extension app just to run simple code which for example provides configuration and start/stop the connection, after that, the process will be killed by the system.

Please provide any ideas on how to achieve this if you have one..

jegora avatar Apr 23 '19 15:04 jegora