How to turn iOS device flashlight on and off

I just wanna write a piece of code that turns the flashlight of the iOS device on and off.

I tried with Vuforia’s code CameraDevice.Instance.SetFlashTorchMode(true/false) but it is not working.

I searched for hours and didn’t find any fix for this or any useful information about iOS flashlight.

Is there any way to turn the flashlight of iPhone on/off? Any asset that does the trick? Anything?

Thank you!

Hi, that code works only if you have Vuforia camera running. I’m trying to access the camera flash without Vuforia too, but I’m not being able to do so.
You can try some plugin too, but you will need one for each supported platform of course.