> For the complete documentation index, see [llms.txt](https://danielsogl.gitbook.io/awesome-cordova-plugins/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://danielsogl.gitbook.io/awesome-cordova-plugins/plugins/plugins/flashlight.md).

# Flashlight

This plugin allows you to switch the flashlight / torch of the device on and off.

Requires Cordova plugin: `cordova-plugin-flashlight`. For more info, please see the [Flashlight plugin docs](https://github.com/EddyVerbruggen/Flashlight-PhoneGap-Plugin).

## Installation

```bash
ionic cordova plugin add cordova-plugin-flashlight
npm install @awesome-cordova-plugins/flashlight
```

**Plugin Repo:** <https://github.com/EddyVerbruggen/Flashlight-PhoneGap-Plugin>

## Supported Platforms

* Android
* iOS

## Further Information

* [Installation Guide](/awesome-cordova-plugins/installation.md)
* [FAQ](/awesome-cordova-plugins/faq.md)
