AnchorFreePartner / hydrasdk-demo-android

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

Q- How i can know if the current connected VPN is OPTIMAL _SERVER Or not? #60

Closed mwaked closed 4 years ago

mwaked commented 4 years ago

Hello, i hope all is well, i have a question...

Q- How i can know if the current connected VPN is OPTIMAL _SERVER Or not?

I need to update the ui after user close the app and open it again i want to check if the current connected VPN is OPTIMAL _SERVER Or not? And UnifiedSDK.COUNTRY_OPTIMAL always is empty

Thanks

timoshenkoav commented 4 years ago

you can save this information on app level if the last connection was to optimal server.

mwaked commented 4 years ago

@timoshenkoav I tried this solution but it dos't work with me, once i close the app the values in the application class reset to the default values!

timoshenkoav commented 4 years ago

so store they in sharedpreferences