Questions tagged [fileopener2]

32 questions
0
votes
0 answers

Unable to open the file using fileopener IONIC 4 Cordova

I am trying to download the pdf from the server link to the local storage and then open the local pdf using the fileopener2. I am currently concerned with the android only. But due to some reason, it is giving me the following error Following the…
0
votes
0 answers

I need inlt a sample code to download a pdf file from url on my android

How can I download PDF file from URL with ionic angular capacitor. please some sapmle code. I need to download a Pdf file on My android. I tried to used File-opener to download PDF file on android but IT Couldn't resulved . please help ?
0
votes
0 answers

mp3 won't play on ios

I'm getting this error when i'm trying open audio mp3 files on ios: Error status: 9 - Error message: Could not handle UTI I'm using cordova-plugin-file-opener2 2.2.1 My code: var local_file = cordova.file.dataDirectory +…
Jfé
  • 1
  • 1
0
votes
1 answer

Ionic4 fileOpener plugin can't open .apk file downloaded

I try to do "Open install dialog" from "Quick Examples" of https://github.com/pwlin/cordova-plugin-file-opener2 in ionic4 This is my code: Imports: import { FileTransfer, FileUploadOptions, FileTransferObject } from…
David
  • 1,116
  • 3
  • 18
  • 32
0
votes
0 answers

Ionic3 Fileopener plugin Object(…) is not a function Error

I installed FileOpener plugn for Ionic The project is being compiled and build succesffuly, but when calling the plugin's open function it throws Object(…) is not a function error. Full Error stacktrace: "TypeError: Object(...) is not a function …
Nir-Z
  • 819
  • 1
  • 13
  • 31
0
votes
1 answer

Phonegap, open local Pdf file on Android 7

I have a cordova app with pdf's in it. Every year the pdf's need to be updated and there seems to be a new headache to get it working on Android. On iOS I can open it with InAppBrowser and the relative…
varta
  • 3,296
  • 1
  • 17
  • 18
0
votes
0 answers

Error: exec proxy not found for :: FileOpener2 :: open - Cordova Javascript

I've tried so many methods to open my document file (pdf, xls, docx) and one method is using cordova-plugin-file-opener2 I've already tried adding the plugin where the link should be in github, but it still doesn't work. When I tried using it, It…
0
votes
1 answer

Ionic Native: tried calling FileOpener.open, but the FileOpener plugin is not installed.

WARN Ionic Native: tried calling FileOpener.open, but the FileOpener plugin is not installed. Install the FileOpener plugin: 'ionic cordova plugin add cordova-plugin-file-opener2' Already make all the necessary modifications and the problem…
0
votes
1 answer

Opening Local CSV file from Web browser

I have a requirement in my spotfire application. I do export the data to local file as CSV. Export is completed successfully. After that i need to open the file in Excel application. i tried the below code it is working good in Spotfire client but…
0
votes
0 answers

cordova not defined for file opener2

I have been trying to open pdf on an ionic app using file opener2 Cordova plugin but it's not working and is showing errors with Cordova not defined(but Id id inject the ngCordova module at app.js $scope.gotoPDF1 = function () { …
V5NEXT
  • 1,907
  • 4
  • 19
  • 38
0
votes
0 answers

Cordova FileOpener2 on SD card

I'm struggling for hours now to read and write to SD card on Android using cordova, since cordova.file.externalRootFolder just gives back file:///storage/emulated/0 (Android 6.0+), which is the same as the internal disk. But I got that working now,…
0
votes
1 answer

Ionic file opener

I am developing an app for android, ios and windows. One of the requirements is being able to download a pdf that is stored in the assets folder in the ionic app. I am using this plugin https://ionicframework.com/docs/native/file-opener/. I am…
skydev
  • 1,867
  • 9
  • 37
  • 71
0
votes
0 answers

Error well opening file: exposed beyond app through Intent.getData()

I try to achieve the following behaviour: Download file from an external location Save it locally Open it The file-opener plugin seemed to be the perfect match, I used an example from (Opening a remote file):…
M. Suurland
  • 725
  • 12
  • 31
0
votes
0 answers

ionic - open a PDF file using Cordova FileOpener2

My ionic app downloads a PDF file and then tries to open it using Cordova FileOpener2 plugin: var targetPath = "file:///storage/emulated/0/Android/data/myapp/files/myDir/fds/30510L109.pdf"; $cordovaFileOpener2.open(targetPath, 'application/pdf') …
jcmag
  • 239
  • 1
  • 3
  • 14
0
votes
1 answer

meteor cordova in-app apk update silently fails

I am trying to implement an autoupdate functionality to distribute an app outside of the regular markets. I use a mix of cordova plugins in order to download and execute a newer version of my app. I can see that I download the apk to external…
Arthur Breton
  • 115
  • 2
  • 8