I tried installing this plugin on iOS now using cordova 2.7. I am using Xcode
I installed the config.xml file
<plugin name="PowerManagement" value="PowerManagement" />
Folders plugins: files PowerManagement.h and PowerManagement.m
and in my html:
cordova.require('cordova/plugin/powermanagement').acquire( function() { alert( 'MARCHE' ); }, function() { alert( 'oh no!' ); }
I have no warnings in my iPhone, I donβt know why.
I have this error: the CDVPlugin PowerManagement class (pluginName: PowerManagement) does not exist. 2013-07-03 14: 36: 34.619 ERROR: The PowerManagement plugin was not found or is not a CDVPlugin. Check the plugin in the config.xml file. [07]: [PowerLogagement1817140935], "PowerManagement", "release", []].
[Line 116] FAILED pluginJSON = ["PowerManagement1817140935", "PowerManagement"
source share