Hi all I’m trying the event chapter from phonegap and when I look for battery issues it give the log as
2011-11-22 11:30:17.964 Event[644:207] ERROR: Plugin 'com.phonegap.battery' not found, or is not a PGPlugin. Check your plugin mapping in PhoneGap.plist.
And when i map the com.phonegap.battery in the plist with value PGBatteryLevelPlugin then the log is
2011-11-22 11:18:03.152 Event[552:207] PGPlugin class PGBatteryLevelPlugin (pluginName: com.phonegap.battery) does not exist.
2011-11-22 11:18:03.152 Event[552:207] ERROR: Plugin 'com.phonegap.battery' not found, or is not a PGPlugin. Check your plugin mapping in PhoneGap.plist.
Any idea what to do? I have downloaded the plugins for phonegap but couldn’t found the battery plugin.
There is no battery plugin for PhoneGap. The thing you’re trying to look for is actually part of a tutorial written up at wiki.phonegap.com. I don’t think it’s a real plug-in.
Do another Google search on “Phone Gap” + “battery” and you might find something more useful.
Like this one I just found: https://github.com/alunny/phonegap-battery-status