Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get current VPN state after connected and the app is killed or put in background #9

Open
jackywxd opened this issue Mar 10, 2021 · 2 comments

Comments

@jackywxd
Copy link

Thanks for creating such amazing project! With little effort I can connect to my VPN server.

After connected, then I killed my App and relaunched my App, it seems getCurrentState() always return 0 even it was connected. When my App is in the foreground, connect/disconnect/getCurrentState everything work as expected. Not sure this is expected result or maybe the way I used it was wrong. If you could shed some light on how to get the current VPN state in this case would be appreciated.

Thanks again!

@jackywxd
Copy link
Author

With some help of googling, I think I found a solution. I will create a pull request.

Thanks!

@sijav
Copy link
Owner

sijav commented Mar 13, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants