5

I'm developing PWA as part of my bachelor thesis. Part of the app is generating PDF report. I'm using jsPDF to create the report and then save it via doc.save("filename.pdf") This works perfectly on any desktop browser and all android phones i've tested so far. The bad thing comes with an iOS. In PWA mode the PDF is shown in window with almost no options but 'done' which return back to the app so it's not possible to save the PDF.

I've tried all doc.output() types and solutions based around blob and toDataUrl(). I've read about cordova and phoneGap but i'm not sure how exactly should it work.

I'm little worried that it's not my fault but lack of PWA support in iOS

1 Answers1

-1

This sounds like MIME type issue. Please check if the MIME type of pdf is set correctly. iOS historically has problem with responses not having explicit MIME type.

Please refer this thread and this one.

It should most likely not an standalone PWA issue and should be happening in iOS + Safari as well. You can validate the same and confirm here how things works.

Anand
  • 9,672
  • 4
  • 55
  • 75