哪里可以下载PowerManagement的原版cordova插件,如何安装?我指的是这个类org.apache.cordova.plugin.PowerManagement,谢谢!
发布于 2014-08-10 23:12:03
这不是官方的Cordova插件
您可以使用以下命令在中安装:
cordova plugin add https://github.com/Viras-/cordova-plugin-powermanagement.git插件的Gihub:https://github.com/Viras-/cordova-plugin-powermanagement
发布于 2014-12-10 23:45:38
你可以使用这个插件(不是官方的Cordova插件,而是在cordova插件网站上引用的)
http://plugins.cordova.io/#/package/org.chromium.power
而且它还支持android和ios。
使用requestKeepAwake应用程序接口保持通电:
chrome.power.requestKeepAwake('display');然后使用releaseKeepAwake接口关闭:
chrome.power.releaseKeepAwake();https://stackoverflow.com/questions/25229260
复制相似问题