Search Issue Tracker

By Design

Votes

1

Found in

2021.3.35f1

2022.3.20f1

2023.2.11f1

2023.3.0b6

6000.0.0b11

Issue ID

UUM-64377

Regression

No

[Android] Camera access permission request pop-up is not thrown when the Player is built using a Batch Mode custom build

--

-

Reproduction steps:
1. Build the Player in Batch mode with JenkinsBuild.PerformAndroidBuild
2. Open the build using a mobile device
3. Observe the Player

Expected result: After the app is launched a pop-up is thrown asking for the camera permission
Actual result: After the app is launched no pop-up is thrown

Reproducible with: 2021.3.35f1, 2022.3.20f1, 2023.2.11f1, 2023.3.0b6

Reproduction environment: macOS Sonoma 14.3 (Intel), Windows 10 (user’s)
Not reproducible environment: No other environment tested:

Reproducible with these devices:
VLNQA00175, Samsung Galaxy Note9 (SM-N960F), Android 10, CPU: Exynos 9 (9810), GPU: Mali-G72
VLNQA00519, Google Pixel 4 (Pixel 4), Android 12, CPU: Snapdragon 855 SM8150, GPU: Adreno (TM) 640
VLNQA00372, Samsung SM-G991U (SM-G991U), Android 12, CPU: Snapdragon 888, GPU: Adreno (TM) 660

Not reproducible with these devices:
iPad Air 4th Gen (iOS 15.2.1)

Could not test with these devices:
VLNQA00057, Htc One M9+ (HTC_M9pw), Android 6.0, CPU: MediaTek Helio X10 MT6795T, GPU: PowerVR Rogue G6200 (The project requires Android 24 SDK or newer)
VLNQA00146, Htc 10 (HTC 10), Android 7.0, CPU: Snapdragon 820 MSM8996, GPU: Adreno (TM) 530
(The “Google Play Services for AR” is not available for this device)
iPhone 12 mini (iOS 14.1) (The project crashes upon launch)

Notes:
- Not reproducible when using _BuildCommand.PerformBuild_
- Not reproducible when building the Player through the Editor
- Example command: /Applications/Unity/2022.3.20f1/Unity.app/Contents/MacOS/Unity -projectPath /Users/YOURNAME/ASDQWE -quit -batchmode -nographics -executeMethod JenkinsBuild.PerformAndroidBuild

  1. Resolution Note:

    The reason why application built using JenkinsBuild.PerformAndroidBuild script doesn't ask for a permission to use camera is because in this script xrsettings.InitManagerOnStart is set to false. If open this project in Unity, then go to Project Settings / XR Plug-in Management, disable "Initialize XR on Startup" and build and run this project, it will also will not ask for a permission to use camera. Permission should be asked only when XR is initialized.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.