Skip to content

Is it possible to open scene viewer without showing the 3d model with model-viewer? #547

@hd-esteban

Description

@hd-esteban

For some cases we would like to create a link to open directly scene viewer, so we would like to know if it is possible.

I noticed model-viewer component creates an anchor with a 'intent' command with some fallback parameters.

is it possible to hide the model-viewer component but keep the link to open the AR functionality directly?

I tried with an anchor with the href attribute set with the intent command but it is not working, i also tried by handling the event and using another anchor to trigger the .click() method but it didn't work, does it have any restriction or something like that?

intent://subdomain.domain.com/file.glb?
link=https://domain/ar-example/ar-example.html
&title=3dmodel
#Intent;
scheme=http;
package=com.google.ar.core;
action=android.intent.action.VIEW;
S.browser_fallback_url=https://domain/ar-example.html#model-viewer-no-ar-fallback;
end

<a href="/api/flow.js?q=intent%3A%2F%2Fsubdomain.domain.com%2Ffile.glb%3Flink%3Dhttps%3A%2F%2Fdomain%2Far-example.html%26amp%3Btitle%3D3dmodel%23Intent%3Bscheme%3Dhttp%3Bpackage%3Dcom.google.ar.core%3Baction%3Dandroid.intent.action.VIEW%3BS.browser_fallback_url%3Dhttps%3A%2F%2Fdomain%2Far-example.html%23model-viewer-no-ar-fallback%3Bend"> AR </a>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions