---
description: >-
  Insomnia plugin for Cordova and Ionic. Prevent the screen of the mobile device from falling asleep.
---

# Insomnia

Prevent the screen of the mobile device from falling asleep.

## Installation

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

**Plugin Repo:** [https://github.com/EddyVerbruggen/Insomnia-PhoneGap-Plugin](https://github.com/EddyVerbruggen/Insomnia-PhoneGap-Plugin)

## Supported Platforms

- Android
- Browser
- Firefox OS
- iOS
- Windows
- Windows Phone 8

## Further Information

- [Installation Guide](../../installation.md)
- [FAQ](../../faq.md)
