Search Issue Tracker

Fixed in 2020.1

Votes

0

Found in

2018.4.0f1

2019.2.0a1

2019.3.0a1

2019.3.0b4

2020.1.0a1

Issue ID

1187431

Regression

Yes

[iOS] WebCamTexture.devices returns number of cameras a device has even though Camera permission was not given to the app

iOS

-

To reproduce:
1. Open the attached project "WebCamTest.zip" and open "SampleScene.unity" scene
2. Build for iOS
3. Deploy the Xcode project to an iOS device
4. When the Camera permission request popups up press Don't Allow button
5. Restart the App

Expected result: the pop up is not shown on the first open of the app, or it is shown after the app is restarted if the app wasn't given the permission the first time to use the device camera
Actual result: the project still shows how many cameras does the device have even though the permission to use the cameras wasn't given. On the second run of the app, the pop up doesn't show at all.

Reproduced on:
2018.4.10f1 2019.3.0b5 2020.1.0a7

Doesn't reproduce:
2017.4.33f1 2018.2.21f1

Device reproduced on:
- iPhone X iOS 11.3.1

Device doesn't reproduce on:
- VLNQA00263, Google Pixel 3 (Pixel 3), Android 9, CPU: Snapdragon 845, GPU: Adreno (TM) 630

Notes:
- Might be related to case 1160639
- Cant test on 2019.2.1 - 2019.2.7f2 because of this issue: case 1185078
- The app should ask for permission every time it tries to use the device's cameras if it wasn't given, or don't show the request pop up at all if it's not needed
- On 2018.4.0f1 - 2018.4.10f1 getting this issue: case 1160639
- Crashes on 2018.3.0a4 - 2018.3.14f1
- Getting a lot of errors in Xcode on 2018.3.0a1
- On Android, the permission pop up is displayed every time the app is restarted and permission not given

  1. Response avatar

    Resolution Note (fix version 2020.1):

    Fixed in 2020.1.0a11

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.