2021-09-29 20:09:02 +08:00
|
|
|
<a style="float:right;font-size:12px;" href="http://github.com/danielsogl/awesome-cordova-plugins/edit/master/src/@awesome-cordova-plugins/plugins/insomnia/index.ts#L1">
|
|
|
|
Improve this doc
|
|
|
|
</a>
|
|
|
|
|
|
|
|
# Insomnia
|
|
|
|
|
|
|
|
```
|
|
|
|
$ ionic cordova plugin add cordova-plugin-insomnia
|
|
|
|
$ npm install @ionic-native/plugins/insomnia
|
|
|
|
```
|
|
|
|
|
|
|
|
## [Usage Documentation](https://ionicframework.com/docs/native/insomnia/)
|
|
|
|
|
|
|
|
Plugin Repo: [https://github.com/EddyVerbruggen/Insomnia-PhoneGap-Plugin](https://github.com/EddyVerbruggen/Insomnia-PhoneGap-Plugin)
|
|
|
|
|
|
|
|
Prevent the screen of the mobile device from falling asleep.
|
|
|
|
|
|
|
|
## Supported platforms
|
|
|
|
|
|
|
|
- Android
|
|
|
|
- Browser
|
|
|
|
- Firefox OS
|
|
|
|
- iOS
|
|
|
|
- Windows
|
|
|
|
- Windows Phone 8
|
2021-09-29 20:38:45 +08:00
|
|
|
|
|
|
|
|
|
|
|
|