Plugin - Media with compression (TypeError: window.Media is not a constructor)

Hi!!

I’m using this plugin https://github.com/remoorejr/cordova-plugin-media-with-compression

It worked for a while, using “declare variable window: any” and “declare variable Media: any”;
And then start the record with window.Media(path…).

But now when I try to record the audio, it says: TypeError: window.Media is not a constructor

I think it is because of the new ionic-native version or something, but I don’t know how to solve this problem.

Is there now any other way to use the non native plugins??
Thanks!!!