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

VPN or proxy logic in a React Native app #46

Closed
opolo opened this issue Oct 28, 2018 · 1 comment
Closed

VPN or proxy logic in a React Native app #46

opolo opened this issue Oct 28, 2018 · 1 comment

Comments

@opolo
Copy link

opolo commented Oct 28, 2018

Hi,

I dont believe this feature is added yet, therefore I post this in the proposal board. So please consider it a proposal too for something that would be neat if it is not existing yet.

Anyway,

I have not been able to find any way, by which I can achieve this in React Native. And there does not seem to be any post on it yet, so I hope it is okay that I ask:

Is it possible to first of all add any sort of http proxy to a webview? What I want to achieve is to route the browsing traffic through a proxy (that is running Privoxy), which can strip the HTTP content in the communication for tracking scripts and ads.
I can do it on a full-fledged desktop browser, and through global-setting on the iphone which routes all traffic on the iphone through the proxy (the IP and port number of the proxy can be set in network settings on the iPhone).... That is not userfriendly though.

Is it possible to have just a webview achieve this? I cannot seem to get access to any sort of underlying http client or anything in it, so I cannot do something hacky either :/

If it is not possible, is it then possible for react native apps to use a VPN? I have not found any libraries that gives me access to that yet. If I have one, then I can setup an app-wide VPN hopefully, which can reroute all the traffic to a vpn server that sends it through the Privoxy server, and then it works as well! :]

Hope to hear from you, if it is possible to setup any proxy or VPN logic on either the webview or app-wide in a react native app :) Thanks!

NB. What I want to make is an app, where users can browse privately without fear of being monitored and profiled for what they browse and buy.

@kelset
Copy link
Member

kelset commented Oct 29, 2018

👋 This repo, as the issue template explains, is for long-form discussion. Your looks more like a question/feature request for Webview, so I suggest you open an issue on the webview repo.

@kelset kelset closed this as completed Oct 29, 2018
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