Hi all,
I am trying to use file plugin to download a binary file in the mobile device, but it is not working. I am generating the apk file and then installing it to my Android device to test, but its not working. I have attached the oml file. Any help will be appreciated.
Thanks
Vaibhav Gijre
Hello Vaibhav, Please check the below similar post https://www.outsystems.com/forums/discussion/72434/does-anyone-have-a-step-by-step-to-download-file-via-mobile-app/
https://www.outsystems.com/forums/discussion/68652/download-binary-file-in-db-as-pdf-in-mobile-application/
https://www.outsystems.com/forums/discussion/31597/file-plugin-on-latest-platform-server-development-mode-version-10-0-705-0/
this post working for Android if possible get hint from it -https://www.outsystems.com/forums/discussion/57874/file-plugin-savefile-function-not-working-on-ios/
May be this links will helps you to solve your problem
Thanks and Regards,
Akshay Deshpande
Hi Akshay,
Thanks for the help, I went through the links and I found that the file is being downloaded at Android/data/com.outsystemscloud.xxx.appname/files.
Vaibhav
Hello Vaibhav
I have checked your OML and found there are certain points to take care -
1. Please use CheckFilePlugin action first to check if Plugin is installed or working.
2. I also see you are showing the Message with Error! Can you confirm if you see any error there? Please confirm.
3. In case you are not seeing any error, the file is downloaded. Please use File Viewer Plugin and user its action to open the file Just after Download. So, you will get the Results.
For help you can see File Sample as well.
Hi Manish,
Yes I was showing message with Error to check if it is working or not. It is working fine, only I was not finding the downloaded file. I went through the links provided by Akshay and found that my file was being downloaded at Android/data/com.outsystemscloud.xxx.appname/files.
I am going to explore the file viewer plugin.
Hi Vaibhav
The URL you have found is actually not accessible to us from File Manager and Viewing the file by passing this URL is complicated as you actually do not know the exact URI.
So, better is to use the File Viewer Plugin. You always get the URI from File Plugin as Output that you needs to pass directly into FilePlugin Input.
Feel free to ask in case you face any issues.
Does anyone know how to download a PDF on mobile ATTENTION in (APK) ?