ATTENTION: Code only working on desktop browser. Need some feedback on how to make it work on mobile.
I've imagined two courses of action for this problem:
Build a JS plugin that downloaded the file using WS, stored in the phone storage and on click made the download;
Make a simple PHP sided plugin that printed/downloaded the whole file in one page.
I took the second approach, in which the certificate in base64 is made available for download in the link. However as mentioned before cordova blocks that download.
Just making a PR to help anyone who tries to tackle this problem in the future and has more time to make it work.
ATTENTION: Code only working on desktop browser. Need some feedback on how to make it work on mobile.
I've imagined two courses of action for this problem:
I took the second approach, in which the certificate in base64 is made available for download in the link. However as mentioned before cordova blocks that download.
Just making a PR to help anyone who tries to tackle this problem in the future and has more time to make it work.
210