Flashlight-PhoneGap-Plugin
Flashlight-PhoneGap-Plugin copied to clipboard
iOS: Able to turn on & off flashlight once, but not able to turn on again
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?
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. :)