42
Views
5
Comments
Solved
Check VPN is enabled in device.
Application Type
Mobile
Service Studio Version
11.54.38 (Build 63033)
Platform Version
11.25.0 (Build 41743)

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.

2025-09-04 06-33-37
Nikhil___Vijay
Solution

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

2024-06-24 04-49-49
Princi

Hi @Nikss 

Thanks for your message. I used that VPN component and it works for me. 

2024-06-24 04-49-49
Princi

Hi @Sachin Waghmare 

Thanks for your message. I have used the component and works for me.

2022-07-03 17-24-08
Sourabh sharma

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");

    }

} else {

    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


2025-09-04 06-33-37
Nikhil___Vijay
Solution

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

2024-06-24 04-49-49
Princi

Hi @Nikss 

Thanks for your message. I used that VPN component and it works for me. 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.