trent mclennan
Posts: 0
Joined: Mon Mar 24, 2014 5:59 am

Turn torch on and off

How can i add the function to turn the torch on my phone on and off by pressing a button in an app??

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Turn torch on and off

Hello!

It's a device feature, it's not added by default. You would need to search fro PhoneGap plugin to do that.

Jacob Mayer
Posts: 0
Joined: Thu Apr 10, 2014 6:04 am

Turn torch on and off

I have the same question and the default Camera Service doesn't seem to have the light options included.
How would I add a PhoneGap plugin that allowed me to manipulate the the camera torch light?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Turn torch on and off

Hello!

Here is plugin sample https://build.phonegap.com/plugins/294, you can also search for other plugins. Here is how to add plugin for Android http://docs.appery.io/documentation/u...
Unfortunately there is no way to add plugin for iOS through builder, you would need to do that in xCode. We are working on this functionality.

Return to “Issues”