I have tried a sample webgl build to make it run in my mobile device. I hosted the build file locally. However, when I checked the URL, the below error pops up.
The following tools have been used:
Chrome Version 84.0.4147.105. Didnt work
Firefox version 79.0
Wamp 3.2.2.2
Unity 2019.4.4f1
Compression used: Gzip and uncompressed (both didn’t work)
I searched some forums and they all are not exactly pointing to the mentioned error. I tried adding web.config file for IIS servers as stated in the Unity web deployment manual page and this answer.
Looking at the build, I am able to reproduce the problem, and the issue is that in file UnityLoader.js the function named “UnityLoader.buildCompatibilityCheck” is missing. If I manually add that function in (e.g. by copying it from UnityLoader.compatibilityCheck), the page loads up and I see a 3D model of a chair.
Now, as for why that function would be missing in 2019.4.4f1, I am not sure. Can you try updating to 2019.4.12f1 and see if the issue still persists there?
I currently have Unity 2019.4.1f1 and 2019.4.12f1 installed on my computer, and in the files
the function “UnityLoader.buildCompatibilityCheck” are present and correct. So try updating to 2019.4.12f1? I am not sure of 2019.4.4f1 would have had some regression that got fixed later.