# Flashlight app

Design an app that allows you to turn the flashlight on/off with the press of a switch.

Flashlight

  • Download the basic files and study the code.
  • Find a suitable plugin to control the flashlight and integrate it into the application.
  • Add two event listeners.
    1. The app goes to the background:
      Turn off the flashlight.
    2. The app returns to the foreground:
      Turn the flashlight back on, if necessary.
  • Make sure the app only works in fullscreen and in portrait mode.
  • Create a unique icon for the app.

CAUTION

Because Chrome cannot simulate a flashlight, you can only test this application on a smartphone or tablet.

Last Updated: 6/14/2021, 2:24:20 PM