Open SachinTichkule opened 9 months ago
The plugin doesn't allow cleartext by default.
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.
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.
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.
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.
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:
UNITYWEBVIEW_ANDROID_USES_CLEARTEXT_TRAFFIC
is specifiedThe 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.
Cleartext communication should be disabled as it allows attackers to spy on your network traffic