AnchorFreePartner / hydrasdk-demo-android

Hydra VPN SDK demo app for Android
https://developer.anchorfree.com/
60 stars 31 forks source link

Get Connection Status when application is in background. #70

Closed zohaib1sahni closed 4 years ago

zohaib1sahni commented 4 years ago

I want to get connection status when app is running in background..like Connection duration and vpn status..is their any method in sdk or i've to make my own service for getting connection stats..?

timoshenkoav commented 4 years ago

to get vpn status - UnifiedSDK.getVpnState to get connection duration - UnifiedSDK.getInstance().getVPN().getStartTimestamp

zohaib1sahni commented 4 years ago

Thanks..