Power Management plug-in error.

2 posts, 0 answers
  1. Anup
    Anup avatar
    17 posts
    Member since:
    Dec 2012

    Posted 24 Sep 2013 Link to this post

    till date power management plugin was working properly , updating cordova to 3.0 causes build and deploy failed error. in the log it shows use of deprecated api in powermanagement plug-in. 
    do i need to upgrade plugins , if so how to upgrade custom plugins.

    thanks in advance
  2. Iva Koevska
    Iva Koevska avatar
    286 posts

    Posted 25 Sep 2013 Link to this post

    Hello Anup,

    The PowerManagement plugin for iOS has already been updated to be compatible with Apache Cordova 3.0.0. You can get the latest version for iOS from here

    To update the plugin in your project, just replace the existing plugin files with the updated ones. Make sure to make any necessary modifications in the code, including any references. The quickest way to do that is as follows:

    1. Download the plugin and if not already archived, zip it.
    2. In Icenium, in the Project Navigator, expand the Plugins folder and delete the subfolder for your plugin.
    3. Add the updated custom plugin as per these instructions.

    Note that plugin.xml has been updated and the plugin script is declared in a <js-module> element and you do not need to make any <script> references in your code.

    We have verified that you can build the updated iOS plugin against Cordova 3.0.0 projects. We have not verified if the plugin functionality works as expected. 

    For Android, the plugin has not been updated yet and you will need to update the code manually. You might want to check this StackOverflow thread for more guidance. As currently the Android version of the plugin does not provide plugin.xml, you will need to create one yourself. For more information about plugin.xml, see this article.

    Iva Koevska

    Big news for mobile app and .NET developers! Hear about it at our Release Keynote. Thursday, September 26th, 11AM EDT
    Do you enjoy Icenium? Vote for it in Windows IT Pro Community Choice Awards as Best Cloud Computing Product or Service (Category 5).
    Looking for tips & tricks directly from the Icenium team? Check out our blog!
    Share feedback and vote for features on our Feedback Portal.
Back to Top