Monday, January 21, 2013

PhoneGap 2.3.0 Plugin to Extract .zip file

Hi All,

You must be familiar with the PhoneGap plugin to Extract .zip files. As there are some changes for plugin development in version 2.3.0, I have created a new repo for 2.3.0 and the plugin seems to be working after some changes. Below is the repo URL:

https://github.com/vishalrajpal/PhoneGap-ZipFile-Plugin-2.3.0

Thanks,

15 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. I have a problem when unzip my file and i don't know why. I import your java class, the ZipPlugin javascript and i have add plugin into "xml/config.xml" but the unzip file failed.

    My error : "Failed to run constructor: TypeError: Object #... has no method 'addPlugin'"

    ReplyDelete
  3. Hi Julien,
    For which version of PhoneGap you are using it?

    ReplyDelete
  4. Replies
    1. Do me a favor.. Use the github repository as a sample for you first then check if you have any issues...

      Delete
  5. I have the same issue with phonegap's MacAddress Plugin for android. (using cordova 2.4)
    https://github.com/phonegap/phonegap-plugins/issues/697 says :

    "The addPlugin/addConstructor methods were dropped in 2.0.0. Take a look at the ChildBrowser, TTS or VideoPlayer plugin to see how to modify the js code." But no solution.. :(

    ReplyDelete
    Replies
    1. The plugin must not be updated after 2.0.0 .... It needs some modifications..

      Delete
  6. Can we have one for the iOS too ?

    ReplyDelete
  7. hello I added your plugin to my project but I get the following message:

    05-26 00:49:17.216: D/PluginManager(17546): exec() call to unknown plugin: ExtractZipFilePlugin

    I do not understand where the problem is I have followed all the steps

    Thank's Carlo

    ReplyDelete
    Replies
    1. Hi Carlo,

      Do me a favor. Use the below github repository as a sample project and then check if you have any issues. Below is the link
      https://github.com/vishalrajpal/PhoneGap-ZipFile-Plugin-2.3.0

      Delete
  8. This version of the plugin is compatible with Cordova latest version?

    What are the steps for including the plugin?

    Sorry for my english.

    Thanks.

    ReplyDelete
  9. I've test with the latest version of cordova and i get the error "Class not found"

    ReplyDelete
    Replies
    1. Please update your plugin.xml file with this
      plugin name="ExtractZipFilePlugin" value="com.phonegap.plugin.ExtractZipFile.ExtractZipFilePlugin"/

      I guess this is the reason you are having this error

      Delete
    2. hay, thanks but I am still getting same error

      Delete
  10. This comment has been removed by the author.

    ReplyDelete