Questions tagged [fileopener2]

32 questions
5
votes
0 answers

file opener 2 plugin_not_installed error ionic 2 phonegap on android and ios

Trying to open pdf from a url in an ionic 2 app File opener 2 plugin not working steps performed: 1. generated app using : ionic start fileopener blank --v2 2.Added file opener: sudo cordova plugin add cordova-plugin-file-opener2 saved in…
nilansh bansal
  • 1,404
  • 1
  • 12
  • 23
2
votes
0 answers

Open files in external apps with android (API 30) file provider with write access

I want to open files from my Android app (Cordova) in external apps with write access, so they can make changes. (Example: sign a PDF). The files to open are under external-files-path and can be opened. Unfortunately, the changes are not…
2
votes
1 answer

'exposed beyond app through Intent.getData()' error in android 7 and above

when I m going to open pdf file in android 7 and above i m getting above error.i am using the Cordova-file-opener2 plugin.
2
votes
3 answers

Issues with detecting open file

I have literally copied and pasted and tested every bit of code from may BBs and the same thing happens with all of them. they all either tell me that that the file is open if it's open or closed or they tell me that the file is closed when it is…
rholdren
  • 41
  • 4
2
votes
0 answers

Cordova App: put files in directory during installation

in my app I would include an information section, then view the local pdf files. For opening the file with the default app, I already use fileopener2 plugin, by downloading and placing into the appropriate folder, accessible from external…
T. Phanelly
  • 189
  • 5
  • 17
1
vote
1 answer

How to open a pdf with Ionic Capacitor

I'm trying to open a pdf by pressing a button on Ionic Capacitor using the FileOpener plugin, but it doesn't work, would anyone know how to help me? The pdf is stored into assets/documents In the console I get this error ".open, but Cordova is not…
1
vote
0 answers

How to open pdf file which is saved at Internal storage

I am trying to open a pdf file which is stored on a internal storage but not able to view it. Below is my code snippet to save file on internal storage. try (FileOutputStream fos = openFileOutput("demo.pdf", Context.MODE_PRIVATE)) { …
sanil
  • 482
  • 1
  • 7
  • 23
1
vote
1 answer

Document Viewer, File Opener not working in ionic

I am new to ionic. I want to open pdf file which is in server. For that the following plugins. But still pdf is not opening. First I have installed and added these plugins. 1. ionic cordova plugin add cordova-plugin-file npm install…
Rohit Tagadiya
  • 3,373
  • 1
  • 25
  • 25
1
vote
1 answer

how can i pass ifstream and ofstream to same function objects in C++?

My use case is to create a function which takes a fileName , an ifsttream/ofstream object and then opens the file for reading/writing accordingly in the given filestream object. also to check whether the operation was successful or not and if…
Vishesh Arya
  • 39
  • 1
  • 10
1
vote
1 answer

Cannot import FileOpener into my app.module.ts

As written in the docs here, to import FileOpener you should place import { FileOpener } from "@ionic-native/file-opener"; in you app.module.ts, but always get "Invalid provider in ngModule..."
A. D'Alfonso
  • 759
  • 11
  • 20
1
vote
0 answers

ionic 2 - File storage path

I need to download the pdf/word/excel file from external server in to my ionic application. Sample code below const fileTransfer: FileTransferObject = this.transfer.create(); const url =…
AnKr
  • 433
  • 1
  • 6
  • 20
1
vote
1 answer

How to open an email file in a Cordova app?

I would like to download email files into the cordova.file.cacheDirectory and open them in the default email app. I am using the Cordova File Transfer Plugin for the download and the File Opener Plugin to open in the default app. The download part…
Naresh
  • 23,937
  • 33
  • 132
  • 204
1
vote
0 answers

FileOpener2 causing Attempt to invoke virtual method in cordova.js file on Android 6.0 or higher

We use FileOpener2 plugin for cordova to open a downloaded .apk file from our servers. Recently, we found that Android 6.0 or higher devices are throwing an exception only on the file open process. We were able to trace this down to the cordova.js…
Kyle
  • 11
  • 2
1
vote
1 answer

Cordova - fileOpener2 - Activity not found: No Activity found to handle Intent

I'm using cordova-plugin-file-transfer and plugin cordova-plugin-file-opener2 I can get the apk to download but I keep on running into this error ever time: Error status: 9 - Error message: Activity not found: No Activity found to handle Intent {…
1
vote
2 answers

Open a file within the app folder with fileOpener Ionic2

this is my code : import { Component } from '@angular/core'; import { NavController } from 'ionic-angular'; import { FileOpener } from 'ionic-native'; @Component({ selector: 'page-installHelper', templateUrl: 'installHelper.html' }) export…
ADiL
  • 367
  • 4
  • 17
1
2 3