gree / unity-webview

zlib License
2.3k stars 694 forks source link

The app allows cleartext communication #1044

Open SachinTichkule opened 9 months ago

SachinTichkule commented 9 months ago

Cleartext communication should be disabled as it allows attackers to spy on your network traffic

KojiNakamaru commented 9 months ago

The plugin doesn't allow cleartext by default.

varnit-mittal commented 3 weeks ago

I am trying to render my Django based web application on a VR headset using this WebView. But, I am seeing a blank page and I have taken all the necessary steps mentioned in the README.md.

All other webpages are being rendered correctly. Screenshot 2024-10-24 002916

KojiNakamaru commented 3 weeks ago

All other webpages are being rendered correctly.

If a very simple http (not https) page can be shown in the same environment, your Diango based we app should have causes. If the same app runs correctly on other non-VR android devices, the VR headset should have causes.

varnit-mittal commented 3 weeks ago

The web-app runs normally on every device without using webview, just by the url and also when I use web-view it is not being rendered on any device. Do you have any advise, on how to correct this error or any advise what should the error be, because both unity and django are not giving any error logs related to this.

varnit-mittal commented 3 weeks ago

I do not know what the issue was, but I bypassed it using ngrok, maybe we can add this in the documentation too, for developers who are willing to use WebView with Django or MERN.

KojiNakamaru commented 3 weeks ago

You can try to put a simple html page (such as files under https://github.com/gree/unity-webview/tree/3aa60f05882a4beb5443c23acb7d4236fc253dab/sample/Assets/StreamingAssets ) on the server and try to access it through http. If it is rendered, there should not be any http/https issue. At least the sample app runs without any issue on my Android 14 device for those files remotely placed. My configuration is the following:

KojiNakamaru commented 3 weeks ago

The sample app works also for diango. The server is running on mac and the sample app running on Android14 device accesses http://192.168.xxx.xxx:8000/ . The configuration is same as before.

Screenshot_20241026-013829