0

I've got a Cordova hybrid application for Android and iOS that I'm trying to port over to the Windows 10 platform. The issue I'm having is that the plugin I was originally using https://github.com/MobileChromeApps/cordova-plugin-zip is not supported for Windows.

So far I've tried tweaking https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/Compression to unzip a file but it doesn't look like it can handle .zip extensions. The sample is setup to use ".compressed" and ".decompressed" file extensions.

I've also tried using https://gildas-lormeau.github.io/zip.js/ but was still unable to get it to unzip my file. I tested this solution locally on chrome to make sure I had it working but when I tested it in my application it threw an error of "unable to read file".

Any ideas on how to unzip a file in my Windows 10 application?

Thanks in advance.

1

1 Answer 1

2

Using the updated code in github.com/MobileChromeApps/cordova-plugin-zip/pull/60. I merged it with a clone of the repo and made a public repo. github.com/Culture22/cordova-windows10-zip

2
  • the above plugin does not work for me. It always returns -1 when trying to unzip
    – sharmacal
    Jan 8, 2018 at 14:24
  • zip.unzip( ms-appdata:///local//f1.zip, "ms-appdata:///local//f1" , StatusCallback , ProgressCallback); this for some reasons always returns -1.
    – sharmacal
    Jan 9, 2018 at 7:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.