I use the cordova-plugin-file-opener2 (2.0.19) plugin to open files. On Android it works as expected. In iOS, however, I have the problem that iOS defaults to using the internal preview to view the document. How do I get iOS to open the file directly in the app?
With a fork of the plugin (https://github.com/agilethomas/cordova-plugin-file-opener2) I could at least use the function “showOpenWithDialog”. However, this must be called directly via “cordova.plugins.fileOpener2”, since this is not available in @ ionic-native.
The problem here is that although iOS opens a dialog, but all available apps are offered to open. But I would like, the iOS opens the PDF directly in Adobe Acrobat, more or less as default.