-
Notifications
You must be signed in to change notification settings - Fork 583
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
cordova.plugins.fileOpener2.open() wont work on Windows #51
Comments
Hi @Gillardo can you please take a look into this issue? Does this have something to do with the recent PR changes we merged into the master? Thanks very much. |
I'm also having this issue. |
Sorry been bit busy. I will check this soon. The pr changes were done by
|
I will look into it |
Thank you very much @ielcoro ! |
i tried to use path "ms-appdata:///local/cache.pdf" and it looks like it works! i used 'ms-appdata:///local//cache.pdf' before which didnt work. (difference is the extra '/') however i think that generally correct way to describe the path should be with double "/". |
@zulalay sure, the extra / is wrong, paths should use only one /. I think that what you are sawing when calling Ext.device.filesystem.FileEntry is visual studio and .net escaping the value /, however under the hood it does not have two / at all, only one. |
I am using Apache Cordova in Visual Studion 2015 and running the project as WIndows project.
In the app, I download pdf file and then try to open it using
where options.filePath is 'ms-appdata:///local//cache.pdf'
and options.fileType is 'application/pdf'
However i get :
Exception is about to be caught by JavaScript library code at line 49,
column 14 in ms-appx-web://<package_name>/www/plugins/cordova-plugin-file-opener2/src/windows/fileOpener2Proxy.js
0x80070057 - JavaScript runtime error: The parameter is incorrect.
Any ideas what can be wrong with my parameters?
Thanks
The text was updated successfully, but these errors were encountered: