bozoh / moodle-mod_simplecertificate

It's NOT RECOMMENDED to install version below 2.2.6 (MOODLE_31), due a security issues See more in README
17 stars 44 forks source link

Download certificate file via mobile App #242

Closed labmorales closed 1 year ago

labmorales commented 3 years ago

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:

  1. Build a JS plugin that downloaded the file using WS, stored in the phone storage and on click made the download;
  2. 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.

210