sceneview-android icon indicating copy to clipboard operation
sceneview-android copied to clipboard

Enabling Geospatial causes a white screen

Open eschoenawa opened this issue 2 years ago • 4 comments

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. Screenshot_20220827-221349

eschoenawa avatar Aug 27 '22 20:08 eschoenawa

On my Motorola One Action (Android 11) the screen weirdly goes complete black instead: Screenshot_20220827-222210

On another phone (Oneplus 6T, Android 11) the screen glitches out completely with some weird textures:Screenshot_20220828-000720

eschoenawa avatar Aug 27 '22 22:08 eschoenawa

Maybe you forget the location permission

eguizabal98 avatar Aug 29 '22 03:08 eguizabal98

Good idea, but I have granted ACCESS_FINE_LOCATION and ACCESS_COARSE_LOCATION to the app and still get the same result.

eschoenawa avatar Aug 30 '22 13:08 eschoenawa

@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 and ACCESS_COARSE_LOCATION

yhishi avatar Aug 31 '22 06:08 yhishi

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.

github-actions[bot] avatar Nov 30 '22 05:11 github-actions[bot]

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.

github-actions[bot] avatar Dec 08 '22 05:12 github-actions[bot]

Not fixed, facing same problem in Redmi note 10 pro

adi-kmt avatar Jan 17 '23 06:01 adi-kmt

In case your corresponding error is: image 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")

ThomasGorisse avatar Sep 20 '23 14:09 ThomasGorisse