Quick post about download of files on Cordova, 3 main options: cordova-open plugin, fileOpener2 plugin or InappBrowser plugin

InappBrowser

If you handle remote files, use IAB to open file on a new webview. Use target param to choose within app or new webview.

Cordova-open

cordova-open for Android

cordova-open for Android use MimeTypeMap.getFileExtensionFromUrl(path) Then if the uri not contains the extension of file it couldn’t find the appropriate App to open.

cordova-open for iOS

cordova-open for iOS call QuickLook, no matter if file contains or not a file extension.

fileOpener2

fileOpener2 ask developer to provide the mime-type

https://github.com/meumobi/IRmobi/issues/218


Victor Dias

Sharing mobile Experiences

Follow me