Hi ,
We were developing a mobile application which works 100% in offline mode and when the users install this .apk we will create some set of folders with zipped files in Internal storage and when the user starts using this application, we need to unzip the zipped files and have to store the extracts in another folder. Are there any plugins available in Outsystems to do the unzipping in offline mode. Please suggest
Hello VIGNESH,
"BigZip is a server-side asset, so it does not function on mobile devices when offline. You may want to consider using the MobileZIP asset, which is a JavaScript unzipper. I have not personally tested it, so I cannot confirm if it can handle files as large as the ones you have. As mentioned earlier, attempting to unzip an 850 MB file on a mobile device is not something I would recommend. Additionally, if it needs to work offline, how is the 850 MB file being transferred to the device? Surely it must originate from somewhere?"
Hi @Vaishali Bhatt
Thanks for your suggestion. As of now size of the file is not a concern. We need to unzip the file in offline mode and need to extract the content in the parent folder, when the user clicks on a button in application.
The File transfer is happening through USB cable.
I have tried MobileZIP but this plugin is not supported with MABS 9.0 and showing error message while generating the build.
You can use jszip (https://stuk.github.io/jszip/) for this. Please find a discussion on the same at https://www.outsystems.com/forums/discussion/79275/problem-using-jszip-library-in-outsystems-reactive-application/
Hi @Siya
Thanks for your suggestion. I have reviewed the .oml code and it will be helpful for achieving download functionality, but I want to achieve unzipping the zipped file in offline mode in mobile app.
Please let me know if you get any idea on this.
Thanks
OutSystems does not provide built-in functionality for unzipping files in offline mode on mobile devices. However, you can achieve this functionality by using custom plugins or by integrating existing Cordova plugins.