google-ar / WebARonTango

A proposal to provide Augmented Reality (AR) capabilities to the web in the form of a prototype on top of WebVR built in Chromium.
Apache License 2.0
389 stars 48 forks source link

should this web view support the web location API? #7

Closed blairmacintyre closed 7 years ago

blairmacintyre commented 7 years ago

If I try running a web page that access the location API, it doesn't appear to work. Should it?

blairmacintyre commented 7 years ago

Any luck on this?

bionictk commented 7 years ago

It seems to be disabled in

public void onGeolocationPermissionsShowPrompt(String origin,
                    GeolocationPermissions.Callback callback) {
                System.out.println("WebAR: onGeolocationPermissionsShowPrompt");
                // callback.invoke(origin, true, true);
                callback.invoke(origin, false, false);
            }

Enabling this worked.

judax commented 7 years ago

Added support already.