0

Is there any way to download the file that supports all the platforms web, mobile app etc?

We have a web application that developed on angular 8, we have multiple clients (80+) who are accessing our application using IFrame.

We have functionality that downloads the pdf file by API response type octet-stream, download is working fine on browsers, but not working on android/ios apps. because it requires native code but our application is a web app.

Can anyone please help us to the best approach that can download files on both browser / mobile apps? using angular / C# web API.

Note: Kindly don't delete this question by saying any code reference etc, I am looking for the approach.

3
  • Your android/ios apps dont have functions for download any files by direct link? how you access to your web app from android/ios apps Commented May 11, 2021 at 17:59
  • try <embed> tag Commented May 11, 2021 at 18:14
  • Clients using our App on Iframe, we don't have access to the mobile app code Commented May 12, 2021 at 10:24

1 Answer 1

0

try like here

<object data="your_url_to_pdf" type="application/pdf"> <embed src="your_url_to_pdf" type="application/pdf" /> </object> 
Sign up to request clarification or add additional context in comments.

1 Comment

Sorry, Clients using our App on Iframe, we don't have access to the mobile app code We are able to display the document but we don't have access to download the file.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.