0

I'm working on a website that's supposed to be able to access the flashlight on both android and IOS. I managed to find a way to turn on the torch from android through chrome (link) this same code however isn't working on my IOS device, even though the browser is showing that safari is actually accessing camera.

P.S. I'm running on IOS 12.2

  • Well as stated in the comments on [that answer](https://stackoverflow.com/a/47153547/8902440) it isn't working in safari or iOS... – Chiel Jul 03 '20 at 15:47
  • 1
    that was 3 years ago though, thought that things might be different now, but I guess not.. edit: Oh actually the comment you're referring to is from 2019 and after further research it seems like ImageCapture is definitely not supported on IOS.. Thank you! – Jamil Zaitouny Jul 04 '20 at 08:09
  • 1
    Unfortunately Apple is actively removing functionality from the browser like torch zoom and music controls in the name of security. You can open this link on any device and it will show you the list of supported constraints for that device https://developer.mozilla.org/en-US/docs/Web/API/Media_Streams_API/Constraints#result – b.stevens.photo Mar 28 '21 at 04:15

0 Answers0