Turn on the flashlight on mobile with PlayCanvas?

Hi Guys. This is posible with javascript in Playcanvas? Any library? Has anyone tried it successfully?

It seems doable via the camera permissions https://stackoverflow.com/questions/37848494/is-it-possible-to-control-the-camera-light-on-a-phone-via-a-website/47153547#47153547