tchvu3 / capacitor-voice-recorder

Capacitor plugin for voice recording
69 stars 57 forks source link

Error Message - 'VoiceRecorder has no web implementation' #1

Closed ariari90 closed 3 years ago

ariari90 commented 3 years ago

I have followed the exact steps as provided in angular ionic project. However, this line -> VoiceRecorder.canDeviceVoiceRecord().then((result: GenericResponse) => console.log(result.value));

is throwing exception - "core.js:4197 ERROR Error: Uncaught (in promise): VoiceRecorder does not have web implementation."

In the documentation, it says that canDeviceVoiceRecord() will never throw an exception. Could you please confirm whether this plugin does not support web implementation or am I doing something wrong?

Thank you so much to look into this.

tchvu3 commented 3 years ago

This is because the plugin really does not have a web implementation, you got this error when you used ios or android devices? (the fact this function does not throw exception was meant for ios/android)

ariari90 commented 3 years ago

I just tested now, it works perfectly in the device. Thank you so much!