zappar-xr / zappar-unity-examples

18 stars 6 forks source link

Examples do not work on Chrome mobile #9

Closed marioslokas closed 3 years ago

marioslokas commented 3 years ago

Hi,

I downloaded the project and build to WebGL with Unity 2019.3.6. I run a local python server to test on mobile, and the Menu scene loads up. When any of the other scenes are loaded, I get the Grant Access pop-up, but after granting access nothing happens. The app is just sitting there doing nothing, and all I see is a white background. After waiting for a minute or two, still nothing.

I am running the app on an Android phone, version 9. Using the desktop chrome debugger the last messages I get are:

Creating buffer with size: 256 Creating buffer with size: 512 ID: WEB_192.168.*_WEB Success https://licensing.zap.works/6b4991d3229981bbea42c6c4bb22a4853b9ce058.. 0.00%s complete. HTTP readyState: 278670. HTTP status: 4. HTTP statusText: . Received chunk [0, 0[ Creating buffer with size: 256

And then nothing happens. I manually added the permission for the Camera to Chrome, still nothing. Note that the scenes run on desktop, but I get errors due to cameras missing.

nyan-left commented 3 years ago

Hi @marioslokas

Are you serving the build using https?

marioslokas commented 3 years ago

Hi @marioslokas

Are you serving the build using https?

That was it. I was using a python local server and now switched to an https server and it works.