@shopware-ag/dive 1.16.26-beta.1 → 1.16.26-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopware-ag/dive",
3
- "version": "1.16.26-beta.1",
3
+ "version": "1.16.26-beta.3",
4
4
  "description": "Shopware Spatial Framework",
5
5
  "type": "module",
6
6
  "main": "./build/dive.cjs",
package/src/ar/AR.ts CHANGED
@@ -110,7 +110,15 @@ export class DIVEAR {
110
110
  encodeURIComponent(modelUrl.toString()),
111
111
  );
112
112
 
113
- const intent = `intent://arvr.google.com/scene-viewer/1.0?${
113
+ const version = '1.0';
114
+
115
+ console.log('USING SCENE VIEWER');
116
+ console.log('version:', version);
117
+ console.log('params:', params.toString());
118
+ console.log('modelUrl:', modelUrl.toString());
119
+ console.log('locationUrl:', locationUrl.toString());
120
+
121
+ const intent = `intent://arvr.google.com/scene-viewer/${version}?${
114
122
  params.toString() + '&file=' + modelUrl.toString()
115
123
  }#Intent;scheme=https;package=com.google.android.googlequicksearchbox;action=android.intent.action.VIEW;S.browser_fallback_url=${encodeURIComponent(
116
124
  locationUrl.toString(),
@@ -142,7 +150,7 @@ export class DIVEAR {
142
150
 
143
151
  anchor.setAttribute('href', intent);
144
152
  console.log('Attempting to present in AR with Scene Viewer...');
145
- anchor.click();
153
+ // anchor.click();
146
154
  }
147
155
 
148
156
  private createSceneViewerSrc(): string {