This is a migrated thread and some comments may be shown as answers.

What code can switch ON the flashlight in iPhone?

5 Answers 49 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Nitish
Top achievements
Rank 1
Nitish asked on 21 Nov 2013, 02:24 PM
Hi guys,

I have been working on an app that uses the flash as a flashlight in iPhones. Im wondering what code would switch ON the flashlight. 

Cheers
Nitish

5 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 21 Nov 2013, 02:42 PM
Hi Nitish,

Cordova API does not expose out of the box way for working with devices that have flash light. However there are custom Cordova plugins that do this e.g.: Flashlight-PhoneGap-Plugin.

Regards,
Steve
Telerik
You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
0
Nitish
Top achievements
Rank 1
answered on 21 Nov 2013, 03:18 PM
Hi Steve,

Thanks for this. I have seen couple of these plugins for the past hours. However, I cant seem to figure out on how I will install this in my icenium. I tried replacing my files and working out its directories, but still no Luck :(

Cheers
Nitish
0
Steve
Telerik team
answered on 22 Nov 2013, 02:34 PM
Hello Nitish,

How did you download and install the plugin to your project? You should use the Download Zip button, and then just follow the instructions from the following post: Import Custom Plugins.

I've made a sample that uses that plugin for your convenience, you can follow the guidance to clone a sample app and then run the app on your device.

Regards,
Steve
Telerik
You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
0
Nitish
Top achievements
Rank 1
answered on 22 Nov 2013, 06:06 PM
Hi Steve,

Thanks Steve! I'm excited to try this out tomorrow morning. Will update you with the results.

Cheers
Nitish
0
Daniel
Top achievements
Rank 2
answered on 02 Dec 2015, 03:17 PM
Nice job.  Works just beautifully and I was able to blend into existing app. 
Tags
General Discussion
Asked by
Nitish
Top achievements
Rank 1
Answers by
Steve
Telerik team
Nitish
Top achievements
Rank 1
Daniel
Top achievements
Rank 2
Share this question
or