-
Notifications
You must be signed in to change notification settings - Fork 761
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
Issue with file download on iOS #623
Comments
This suggest that your
Please show the implementation of this method, or the method that makes use of cordova's plugin write API. |
@breautek Sure here's the entire implementation. So I have a component called orderList in which I have a button which is
Here's the fetchPDF method:
Once I fetch the pdf then I call the method downloadPDF by importing the service base64PdfDownload, of which the code is given below:
|
None of that shows what I asked for, which is the implementation that uses the cordova API. All code that was provided appears to be ionic's framework usage. Apache cannot provide support on framework code as that's not a code base that is maintained by Apache. You may need to create a sample reproduction application application that uses the cordova file plugin directly that demonstrates your issue so that we can eliminate and isolate the issue away from any app or framework code. |
The above issues are similar to mine and has a working solution |
Bug Report
Problem
I'm encountering an issue with the cordova-plugin-file plugin in iOS when trying to download and save a PDF file from an API response. The plugin seems to be working fine in Android, but I'm facing difficulties in iOS.
What is expected to happen?
The PDF file should be successfully downloaded and saved to the device's filesystem in iOS, similar to how it's functioning in Android.
What does actually happen?
Code runs successfully and falls under the success block and even present the toast of 'File downloaded successfully.' But file is not downloaded on device.
Information
Command or Code
Environment, Platform, Device
Version information
Cordova Version: 12.0.0
Checklist
The text was updated successfully, but these errors were encountered: