This plugin allows you to switch the flashlight / torch of the device on and off.
import { Flashlight } from '@ionic-native/flashlight'; constructor(private flashlight: Flashlight) { } ... this.flashlight.switchOn();