I create a base64 pdf with pdfMake and display it in html in a container, on a pc no problem.
When I do the same on a mobile app, it asks to open a link, it opens the pdf fine but has to restart my app when closing the pdf.
I tried converting to Unit8Array and displaying a Blob in an iframe but still restarts my app.
Any ideas to not “close” my app?
You might need this plugin
<plugin name="cordova-plugin-preview-any-file" />
Thank you, Sorry I should have stipulated it’s a webapp.
If its asking you to open a link I assume you are using a href? Have you tried displaying it an iframe?
Yeah,chatgpt said that but still restarts my app on return. On a PC I display the pdf with buttons overplayed. Seems mobile is not up to the task.