Give us feedback
file-opener
Mobile icon

File Opener

Stable version 1.0.1 (Compatible with OutSystems 11)
Other versions available for 10
Uploaded on 30 January 2019 by 
0.0
 (0 ratings)
file-opener

File Opener

Details
This plugin will open a file on your device's file system with either its default application, or through selection with the device's modal. (Credits to the people who did this plugin: https://github.com/pwlin/cordova-plugin-file-opener2)
Read more

This component has the ability to open a mobile device's file, either by letting the user chose an app to do the job, or by open with the default app.

The device will offer apps based on the MIME given as a parameter to this component (to know more about MIMEs go here). You may get a file's MIME at the upload moment, on the web interface its very simple, since the upload component gives this information to you, on the mobile on the otherhand the component will not give you this information, so on this component's Demo I provided a way of doind so, just copy to your project and enjoy!

To open files you may need to save they on the device beforehand, this can be acomplished by using others plugins (e.g. File Plugin). One of the options when calling the open action, is named 'DecodeFilePath', you'll need when your URI (Path to the file) is encoded (e.g. file://MyPath/This%20Path%20Has%20Some%20Spaces/MyFile%20Has%20To.png)!

Release notes (1.0.1)

Corrected the Demo's Online Files example 

Reviews (0)
Team