Cannot read property 'fileOpener' of undefined`

Hi all ! Could anyone suggest please … after update to Ionic3, when I want to open pdf file … I see error …

cordova.js:314 Uncaught TypeError: Cannot read property 'fileOpener' of undefined

I use such code …

  openURL(url) {
    this.platform.ready().then(() => {
      this.data_path = url;
      win.resolveLocalFileSystemURL(this.data_path, function (FileEntry) {
        FileEntry.getMetadata(function (metadata) {

          this.fileOpener.open(FileEntry.toURL(), 'application/pdf')
            .then(() => console.log('File is opened'))
            .catch(e => console.log('Error openening file', e));
        })
      }, function (err) {
        console.log("fail resolve");
        console.log(err);
      });
    });
  }

Where does [quote=“anton_klochko, post:1, topic:86532”]
this.fileOpener
[/quote] come from? Is this a library? If so, how do you import it?

Sujan12, this.fileOpener

So did you do all the steps mentioned there and add your plugin to your app module (https://ionicframework.com/docs/native/#Add_Plugins_to_Your_App_Module)?
What does your environment look like? (ionic info in command line)

Sujan12, yes of course !

Sujan12, problem solved …

How did you solve the problem?

With out win.resolveLocalFileSystem working …