ionic-team / ng-cordova

OBSOLETE: Please move to Ionic Native https://github.com/ionic-team/ionic-native
https://github.com/ionic-team/ionic-native
MIT License
3.48k stars 1.05k forks source link

zip error #1237

Open benson-jala opened 8 years ago

benson-jala commented 8 years ago

ionic.bundle.js:25642 TypeError: $window.zip.unzip is not a function at Object.unzip (ng-cordova.js:7046) at download.service.js:106 at processQueue (ionic.bundle.js:27879) at ionic.bundle.js:27895 at Scope.$eval (ionic.bundle.js:29158) at Scope.$digest (ionic.bundle.js:28969) at ionic.bundle.js:29197 at completeOutstandingRequest (ionic.bundle.js:18706) at ionic.bundle.js:18978(anonymous function) @ ionic.bundle.js:25642(anonymous function) @ ionic.bundle.js:22421processQueue @ ionic.bundle.js:27887(anonymous function) @ ionic.bundle.js:27895Scope.$eval @ ionic.bundle.js:29158Scope.$digest @ ionic.bundle.js:28969(anonymous function) @ ionic.bundle.js:29197completeOutstandingRequest @ ionic.bundle.js:18706(anonymous function) @ ionic.bundle.js:18978

gortok commented 8 years ago

Can you show us a repro of this issue, include how you're running it (browser, on device, which platform). Linking to a GH project works too.

benson-jala commented 8 years ago

installed https://github.com/MobileChromeApps/zip plugin. $cordovaZip .unzip( result.nativeURL, destination ).then(function() { console.log('success'); }, function() { console.log('error'); }, function(progressEvent) { console.log(progressEvent); }); this error is coming in both android and ios apps.