Open PDF files (in browser and/or Android) with plugin FileOpener

Hi all,
I would like to open a PDF file with plugin FileOpener in Ionic 2, for both platform or only one, just to function it on. Steps I’ve made are

  1. Install FileOpener with instruction ionic plugin add cordova-plugin-file-opener2
  2. Import it with import {FileOpener} from 'ionic-native';
  3. Test it with following code

itemTapped(event, fattura) {
_, ‘application/pdf’).then(err => console.log('Error status: ’ + err)).catch(ok => console.log(‘file opened successfully’));_

Unfortunately, when i compile it with ionic build (or ionic serve, it’s the same) it gives me this error
TypeScript error: c:/Users///app/pages/elenco-fatture/elenco-fatture.ts(5,9): Error TS2305: Module ‘“c:/Users///node_modules/ionic-native/dist/index”’ has no exported member ‘FileOpener’.

I’ve also seen that GIT project is untouched from about 2 years ago…

Do you have any hint for that?

Thanks a lot,

This is my config.xml
“dependencies”: {
"@angular/common": “2.0.0-rc.4”,
"@angular/compiler": “2.0.0-rc.4”,
"@angular/core": “2.0.0-rc.4”,
"@angular/forms": “0.2.0”,
"@angular/http": “2.0.0-rc.4”,
"@angular/platform-browser": “2.0.0-rc.4”,
"@angular/platform-browser-dynamic": “2.0.0-rc.4”,
“es6-shim”: “0.35.1”,
“ionic-angular”: “2.0.0-beta.11”,
“ionic-native”: “1.3.10”,
“ionicons”: “3.0.0”,
“ng2-pdf-viewer”: “0.0.12”,
“reflect-metadata”: “0.1.8”,
“rxjs”: “5.0.0-beta.6”,
“zone.js”: “0.6.12”
“devDependencies”: {
“del”: “2.2.0”,
“gulp”: “3.9.1”,
“gulp-watch”: “4.3.5”,
“ionic-gulp-browserify-typescript”: “2.0.0”,
“ionic-gulp-fonts-copy”: “^1.0.0”,
“ionic-gulp-html-copy”: “^1.0.0”,
“ionic-gulp-sass-build”: “^1.0.0”,
“ionic-gulp-scripts-copy”: “^2.0.0”,
“ionic-gulp-tslint”: “^1.0.0”,
“tslint-ionic-rules”: “0.0.4”,
“run-sequence”: “1.1.5”
“name”: “evivaalba2.1”,
“description”: “eVivaAlba2.1: An Ionic project”,
“cordovaPlugins”: [
“cordovaPlatforms”: []