sceneview-android
sceneview-android copied to clipboard
Enabling Geospatial causes a white screen
When you enable Geospatial the screen turns white. I've attached a screenshot where I've just set sceneView.geospatialEnabled = true
in the sample-ar-model-viewer
sample. I'm using v0.9.0 / the current main branch. I'm testing on a Pixel 6 with Android 13, which could be the culprit.
On my Motorola One Action (Android 11) the screen weirdly goes complete black instead:
On another phone (Oneplus 6T, Android 11) the screen glitches out completely with some weird textures:
Maybe you forget the location permission
Good idea, but I have granted ACCESS_FINE_LOCATION
and ACCESS_COARSE_LOCATION
to the app and still get the same result.
@eschoenawa I also had the same problem. One of the following will solve the problem.
- Declaration in AndroidManifest
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
- Declaration in AndroidManifest
<meta-data android:name="com.google.android.ar.API_KEY" android:value="@string/GoogleCloudApiKey" /> <meta-data android:name="com.google.ar.core" android:value="required" tools:replace="android:value" />
- requestPermissions
ACCESS_FINE_LOCATION
andACCESS_COARSE_LOCATION
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. Thank you for your contributions.
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.
Not fixed, facing same problem in Redmi note 10 pro
In case your corresponding error is:
It means you also need to add Google Play Services Location and Auth dependencies:
implementation("com.google.android.gms:play-services-auth:20.6.0")
implementation("com.google.android.gms:play-services-location:21.0.1")