Recent(ish) Change to webcamtexture.devices popping up camera permission

Hiya,

Some time between Unity 2018.2.6 and Unity 2019.2.2 a change was made so that a v simple script such as

void Start()
    {

        WebCamDevice[] cameras = WebCamTexture.devices;
    
    }

Worked fine in 2018.2 but in 2019.2 automatically pops up the native iOS camera permission request popup.

I can’t seem to find any release notes that have this change documented?

There is a further problem with this, in that in Unity 2019 build, if you press ‘cancel’ to the popup. Then close and relaunch the app. It will immediately crash. Will flag this as a bug.

Ah, have just found the crash part reported already :- Unity Issue Tracker - [iOS] App crashes and throws an NSInvalidArgumentException when accessing WebCamTexture.devices and permission has been denied

Done some more digging and have seen that in WebCamDevice[ ] cameras = WebCamTexture.devices; does correctly populate the cameras array even when permissions are not given. (Which is what 2018.2.6 does as it doesn’t need permissions). So i’m now stumped why Unity 2019 asks for permission?

Is there a way to prevent permission being asked for when querying WebCamTexture.devices, as it seems not needed