Gentlemen, has anyone managed to implement access to a VPN network using React Native? I’m developing an App that needs VPN to work, but I didn’t want the user to need to install another VPN client on their cell phone. Does anyone know any lib or workaround for this scenario? Thanks in advance.
What traffic do you intend to send over the VPN?
My application is a system that makes REST requests for an API that only accepts connections via VPN. Currently I have to have the OpenVPN application installed on my cell phone to be able to send and receive data. Many thanks for the reply.
VPNs are not all the same. If this API requires the requests to be done via OpenVPN, then you have no choice but to install OpenVPN.
If they don’t specifically require OpenVPN, how does it work?
But either way, Expo does not have any VPN functionality built in.
What you could possibly do instead of having OpenVPN on each phone is to install it on a server with a proxy server. The app could make requests via the proxy, which would relay the requests over the VPN to the API.
Whether the owners of the API would be OK with that solution, is another story…
I will talk to the network analyst to implement this solution and test it. I’ll get back to you as soon as possible. Thank you very much for the suggestion.