Hello Community,
I wanted to check whether the VPN is enabled on my device. Any help will be appreciated for this.
Looking for iOS and Android for both.
Hello @PrinceKumar
You can use this forge component (Detect VPN) that I have created for iOS and Android device.
I hope this will help you to fulfill your requirements.
Regards
Nikhil kumar vijay
Hi @Nikss
Thanks for your message. I used that VPN component and it works for me.
Hello @PrinceKumar,
Please try these forge components.
https://www.outsystems.com/forge/component-overview/16744/vpn-detect-plugin
https://www.outsystems.com/forge/component-overview/14446/detect-vpn-plugin
Thanks,
Sachin
Hi @Sachin Waghmare
Thanks for your message. I have used the component and works for me.
Hi @PrinceKumar !
1.you can Use JavaScript to check the network or VPN connection status with the help of navigator.onLine.If your VPN service provides an API or some integration method, use it to check the VPN status.You might need to use the "HTTP Request" or "Web Service" component to make requests to the VPN service.
Example :- Assuming there is an API endpoint for VPN status
var response = HttpClient.Get("https://api.vpnprovider.com/status");
if (response.StatusCode == 200) {
var vpnStatus = JSON.parse(response.Content);
if (vpnStatus.connected) {
console.log("VPN is connected");
} else {
console.log("VPN is disconnected");
}
console.log("Error checking VPN status");
Or you can use the forge as mention by @Sachin Waghmare .
Hope this will help you
Kind regards
Sourabh Sharma