This PR adds functionality for users to download their certificates as PDF.
It also adds functionality for certificates to be automatically completed on course completion.
Changes
We have fixed the api service for downloading and generating certificates, and have used Expo file system to manage storage of the actual pdf file.
Related Issues
Fixes #305
Checklist
[x] Code has been tested locally and passes all relevant tests.
[x] Documentation has been updated to reflect the changes, if applicable.
[x] Code follows the established coding style and guidelines of the project.
[ ] All new and existing tests related to the changes have passed.
[x] Any necessary dependencies or new packages have been properly documented.
[x] Pull request title and description are clear and descriptive.
[x] Reviewers have been assigned to the pull request.
[x] Any potential security implications have been considered and addressed.
[x] Performance impact of the changes has been evaluated, if relevant.
[ ] Changes have been approved by Product Owner
[ ] Code has been analyzed with CodeScene
[x] I have reviewed the pull request myself
Screenshots (if applicable)
If mobile/frontend pull request, what version of the backend is it stable, and running on?
Please provide information on what BACKEND branch and what BACKEND commit id this mobile/frontend Pull Request is stable on for reviewers.
The download certificate functionality relies on a change made to the certificate service. Currently this is in the staging branch, but deployment has failed.
Notes for Reviewers
If testing this manually, you must run the latest staging version of the certificate service locally.
Description
This PR adds functionality for users to download their certificates as PDF. It also adds functionality for certificates to be automatically completed on course completion.
Changes
We have fixed the api service for downloading and generating certificates, and have used Expo file system to manage storage of the actual pdf file.
Related Issues
Fixes #305
Checklist
Screenshots (if applicable)
If mobile/frontend pull request, what version of the backend is it stable, and running on?
Please provide information on what BACKEND branch and what BACKEND commit id this mobile/frontend Pull Request is stable on for reviewers.
The download certificate functionality relies on a change made to the certificate service. Currently this is in the staging branch, but deployment has failed.
Notes for Reviewers
If testing this manually, you must run the latest staging version of the certificate service locally.