Third Week of Coding : 19 June - 25 June
This was the third week of the coding phase and it was good. This week majorly, I had worked on the way to play the video blobs that I had fetched from the server last week and showing the pdf files in the app. I had worked on the offline support of the application as well. Let’s see everything in detail- Added a feature to play all type media files in app We have 2 types of media files videos and pdfs which we have to show in our app’s media section. Let’s see what approach I had chosen to achieve that and why? Firstly I had downloaded the blob object of the media that is being uploaded on the dhis2 using XMLHttpRequest. Then I had created a local temporary space in the memory to save the file. And lastly using the fileOpener2 plugin, I had opened that file using the supported apps that are already available on the user’s device. This seems simpler but really It takes a lot of time to figure out how actually Cordova handles all this stuff🤔because I am not much familiar wit...