Media plugin not installed?

I have an Ionic 3 app that requires to use Media Plugin.

When I press the “record” button on my app, this code block is executed:

this.platform.ready().then(() => {
    this.fileName = this.commentsProvider.getFileName(this.platform);
    this.filePath = this.commentsProvider.getFilePath(this.platform, this.fileName); =;;
    this.recording = true;

And it doesn’t works. The console throws:

console.warn: Native: tried accessing the Media plugin but it's not installed. 

NOTE: I’m runing the app in a connected Android device, via USB.

You can see I’m using platform.ready() and anyway I still have this problem.

Any idea?

Thank’s in advance!

EDIT: I’ve already deleted node_modules and plugins folders, and ran npm install, and the problem persists.

hi , i guest your app is installed in your device before using this command

$ ionic cordova plugin add cordova-plugin-media
$ npm install --save @ionic-native/media

so you need to give authorization to your app on your Android device

Hi! Yes, I installed the plugin with those commands. But in my app it doesn’t ask for authorization, it says that it “is not installed”.

I thought about the permissions and I added these:

<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />

Although it never gets to ask for permission since it is supposedly not installed.

I think it’s a Cordova error because when app starts I get this error:
ERROR cordova_not_available core.es5.js:1084