Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get proposed phone samples working locally #17

Closed
PaulTVungle opened this issue Jun 29, 2018 · 3 comments
Closed

Can't get proposed phone samples working locally #17

PaulTVungle opened this issue Jun 29, 2018 · 3 comments

Comments

@PaulTVungle
Copy link

Hi,

I'm using a Moto G6 Plus with ARCore and Chrome Canary 69.0.3476.0 (today's nightly) to try out the proposed handset examples here:

https://immersive-web.github.io/webxr-samples/proposals/

If I go directly to this url, both samples work faultlessly and actually the experience is pretty nice.

However, if I check out the repo and start a local web server (Node http-server) with the root webxr-samples/, then I visit the local url (ip_addr:8080/webxr-samples/proposals/phone-ar.html) with the same handset it says "AR NOT FOUND" on the button and I can't start either AR experience.

I wondered if there were any dependencies missing from the repo but unfortunately it is hard to spider the pages because links are created in javascript and wget won't follow those.

Apologies if I have missed any documentation, but I haven't been able to find anything relevant. Is there something else I need to do to be able to get the samples to run from a local web server?

Thanks

@PaulTVungle
Copy link
Author

Ah, I've just found the Origin Trials page:

https://github.com/GoogleChrome/OriginTrials/blob/gh-pages/available-trials.md

Is this likely to be my problem?

@PaulTVungle
Copy link
Author

This was indeed the problem, I have an origin trial token now and everything works locally.

I'll close this ticket, but could you consider adding a line about the origin trial in the documentation as it might save other developers some time.

Ta.

@jsantell
Copy link
Contributor

jsantell commented Jul 2, 2018

Could also be related to needing HTTPS or a localhost URL to access the features

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants