Flashlight-PhoneGap-Plugin icon indicating copy to clipboard operation
Flashlight-PhoneGap-Plugin copied to clipboard

iOS: Able to turn on & off flashlight once, but not able to turn on again

Open logidelic opened this issue 8 years ago • 1 comments

Hey all,

Wondering if anyone else has seen this issue:

  • I switch on the flashlight via flashlight.switchOn(). It works.
  • I switch off the flashlight via flashlight.switchOff(). It works.
  • Wait a few seconds
  • I try to switch on the flashlight via flashlight.switchOn(). It does the "success" callback, however the LED light remains off!

This is on latest iOS. Has anyone else experienced this problem? Or does it work for others?

logidelic avatar Nov 28 '16 15:11 logidelic

Actually after playing around further, I think this is a timing issue related to the use of the cameras... I am using flashlight in conjunction with iosrtc, and it appears that turning on the flashlight is unreliable if it it's happening while iosrtc is connecting. I'm not sure if this is an iOS issue, an iosrtc issue, a libwebrtc issue or flashlight issue. :)

logidelic avatar Nov 28 '16 15:11 logidelic