Skip to content

[MOO-1291] fix for file opening issue, and new version number. #121

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

Merged
merged 2 commits into from
Dec 15, 2023

Conversation

stelselim
Copy link
Contributor

@stelselim stelselim commented Dec 15, 2023

Save file plugin is implemented, here reference.

@stelselim stelselim changed the title fix for file opening issue, and new version number. [MOO-1291] fix for file opening issue, and new version number. Dec 15, 2023
@@ -31,6 +31,7 @@
<plugin name="cordova-plugin-device-orientation" source="npm" spec="2.0.1" />
<plugin name="cordova-plugin-dialogs" source="npm" spec="2.0.1" />
<plugin name="cordova-plugin-file" source="npm" spec="8.0.0" />
<plugin name="cordova-plugin-save-dialog" source="npm" spec="2.0.0" />
<plugin name="cordova-plugin-file-opener2" source="npm" spec="4.0.0" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should be able to remove this dependency now, right?

let response = await fetch(url);
let blob = await response.blob();
let uri = await cordova.plugins.saveDialog.saveFile(blob, fileName);
console.info("The file has been successfully saved to", uri);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need to keep this, same goes for console.error below

Copy link
Contributor

@vadymv-mendix vadymv-mendix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@stelselim stelselim merged commit 53ca032 into master Dec 15, 2023
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

Successfully merging this pull request may close these issues.

2 participants