MediaPlugin error with getCurrentAmplitude()

Hi!

I’m trying to use the MediaPlugin, but when I try to use the method getCurrentAmplitude() it always says this error
TypeError: Cannot read property ‘apply’ of undefined

If i remove the method, the audio is recorded perfectly, so the mistake is in this method.

I tried different things like

console.log(this.media.getCurrentAmplitude()) but returns a promise, so I’m using this now.
this.media.getCurrentAmplitude().then((amp) => {
console.log(amp);
});

but the result its the same in both cases, the error I said before.

Any clue about what is causing this error?

Thank you!

No one used this method before? I really need help with this :frowning:

Same problem here …

@Mystearica did you found any solutions on this???

Thanks a lot.

Hey @Mystearica I found this
https://issues.apache.org/jira/browse/CB-12264

As alternative i´ve tryed ionic native dbmeter
https://ionicframework.com/docs/v2/native/db-meter/

Best Regards