Open rjcorwin opened 5 years ago
Trying out forking of cordova-plugin-inappbrowser and adding a log statement for when a URL to anything starting with dat:
occurs (https://github.com/rjsteinert/cordova-plugin-inappbrowser/blob/master/src/android/InAppBrowser.java#L1160). When the app boots up in the emulator I run adb logcat | grep DAT
and then inspect using Chrome. To open InAppBrowser, using the chrome devtools I run cordova.InAppBrowser.open('dat://foo.com')
... but no log messages related to "DAT" in the logcat
occur. Coming back to this later.
@chrisekelley I changed the name of this ticket to more accurately reflect the goal. Even if when we get intercepting of requests in a WebView on the rails, we still need to hand off those requests to something that gets the contents of the request. That might include making a request to Dat Gateway. In that way, the Java side of the App would be a proxy to the gateway. I think you were getting it when you said "transparent proxy".
What I ended up doing when I was playing around with dat-polyfill, I had it detect when a URL was from the gateway and treat it as a dat://
URL. Maybe that could work here.
Following
dat://
links works great in Bunsen, however the following code will not work in Bunsen...Some quick research shows how we may be able to handle this in WebView.