File download issue in mobile application running as PWA

In mobile application made as per demo by @mario, the files are not being downloaded in full when app is running on mobile as PWA. Sometimes it is 100kb and other time 0 kb but never full file. Small files of some kb as working fine.

Whereas same application when running in computer browser everything is working fine.

Please advice. Thanks in advance.

Hello,

Maybe there is problem with content-length header that client gives to server?

I think the best way to solve the problem is to debug fileDownloader component via devtools, there is no fast way to solve the problem.

I think we can create an issue here (GitHub repository) to fix the bug

Best regards,
Dmitry

1 Like

My problem was solved on changing iframe to pdfviewer addon form vaadin.

Thanks

1 Like

By the way, we have examples how to show PDF

https://demo.jmix.io/ui-samples/sample/iframe-pdf
https://demo.jmix.io/ui-samples/sample/iframe-pdf-rest

So, there is the way to show pdf more simpler