0

I am trying to load https://aframe.io/aframe/examples/boilerplate/panorama/ inside webview but its not showing up. If i load the same url in mobile browser its loading correctly. I tested with pixel 2 virtual device with android version 24 and redmi k20 pro physical device. In both the cases its not loading.

my code looks like this,

WebView myWebView = (WebView) findViewById(R.id.webview);
myWebView.setWebViewClient(new WebViewClient());
myWebView.loadUrl("https://aframe.io/aframe/examples/boilerplate/panorama/");
Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Vikram Hegde
  • 600
  • 1
  • 6
  • 14

1 Answers1

1

It looks that WebGL is not available on WebViews for your combination of device and Android version. You can check other WebGL websites to confirm. e.g: https://threejs.org/examples/#webgl_geometry_colors

Related: Android WebView and WebGL

Diego Marcos
  • 4,502
  • 3
  • 15
  • 20
  • thanks for the reply but I configured webview as shown in this thread *https://github.com/aframevr/aframe/issues/3243* and its working now in the physical device. – Vikram Hegde Nov 21 '19 at 05:30