I am working on an app using ionic 3 in which I am downloading a pdf file from server to local file directory in Ionic 3 (file.dataDirectory). I am trying to render the file to the screen using PDFJS library. I am unable to render the page as I am getting the error: “fetch api cannot load url scheme “file” is not supported”.Please help me how to fetch the file from local file url and load in our app.
Thanks for being part of the GitHub Community Forum! We’re glad you’re here.
I wanted to jump in here, and mention that if you don’t get the help you’re looking for from this particular community, you might want to try getting help somewhere that focuses on Ionic. It’s definitely possible another GitHub user might have run into this same issue and can help, but the GitHub Community Forum focuses primarily on topics related to GitHub, Git, and development projects hosted on GitHub. We want to make sure you’re getting the best support you can, but this forum may not be the right place for this particular topic.
Best of luck!