Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't get access to an instance. #58

Open
aj1717 opened this issue Jan 25, 2016 · 2 comments
Open

can't get access to an instance. #58

aj1717 opened this issue Jan 25, 2016 · 2 comments

Comments

@aj1717
Copy link

aj1717 commented Jan 25, 2016

Hi,
[SOLVED]

I add the plugin to my project, however, there's no way I can access it.
I tried:
zip.unzip
window.zip...
cordova.plugins.zip...
window.plugins.zip...
cordova.require('zip')....

unfortunately, all return null. I have other plugins and they all work fine apart from this.
Could you please let me know how I can access this plugin after I add it to my project?

Thanks.

@aj1717
Copy link
Author

aj1717 commented Jan 26, 2016

My bad,
[SOLVED]
seems the problem is only with the folder locations.
You have to convert the folder to URL, folder.toURL() and use it to unzip files to.
If I try cordova.file.dataDirectory as folder to unzip things, then I get an error.

So that's the main problem.

@mpfurnari
Copy link

I think I'm working through the same issue. Can you tell me what is meant by "convert a folder to URL"? Would be cool if you could tell more about how to solve this. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants