This is a migrated thread and some comments may be shown as answers.

Power Management plug-in error.

1 Answer 46 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Anup
Top achievements
Rank 1
Iron
Anup asked on 24 Sep 2013, 08:30 AM
hi,
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

1 Answer, 1 is accepted

Sort by
0
Iva Koevska
Telerik team
answered on 25 Sep 2013, 02:16 PM
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.

Regards,
Iva Koevska
Telerik

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.
Tags
General Discussion
Asked by
Anup
Top achievements
Rank 1
Iron
Answers by
Iva Koevska
Telerik team
Share this question
or