I am trying to find a way to disconnect any VPN which is connected now by other applications.
1- Is there a way to do this?
2- Is there a way to reconnect the last VPN after disconnecting it?
Note(My thoughts):
When our app tries to turn vpn on, If there is another vpn running, it will be terminated and our vpn will be turned on. So after this, we can turn our vpn service off (SUCCESS).
If this is right, can anybody show me how to do the above scenario?