akofman / cordova-plugin-dbmeter

:microphone::mega: Cordova plugin to get decibels from the microphone
Apache License 2.0
34 stars 29 forks source link

"Native: tried calling DBMeter.start, but the DBMeter plugin is not installed." #20

Open dimeh95 opened 4 years ago

dimeh95 commented 4 years ago

Hi everyone, I am trying to run the following code :

let subscription = this.dbMeter.start().subscribe( data => console.log(data) );

but I have this following error :

[ng] [console.warn]: "Native: tried calling DBMeter.start, but the DBMeter plugin is not installed." [ng] [console.warn]: "Install the DBMeter plugin: 'ionic cordova plugin add cordova-plugin dbmeter'" [ng] [console.warn]: "Native: tried calling DBMeter.stop, but the DBMeter plugin is not installed." [ng] [console.warn]: "Install the DBMeter plugin: 'ionic cordova plugin add cordova-plugin-dbmeter'"

here is the installation i did :

cordova plugin add cordova-plugin-add-swift-support cordova plugin add cordova-plugin-dbmeter npm install @ionic-native/db-meter

I put the following code in the config.xml file in the platform (ios) tag:

"

need microphone access to record sounds

"

and I did not forget to add in the providers "DBMeter" so I really don't understand the error

Can you please help me? (thank you)

EYALIN commented 1 year ago

@dimeh95 this issue has been fixed at my forked repo ( can see https://github.com/akofman/cordova-plugin-dbmeter/issues/25)