edimuj / cordova-plugin-audioinput

This iOS/Android Cordova/PhoneGap plugin enables audio capture from the device microphone, by in near real-time forwarding audio to the web layer of your application. A typical usage scenario for this plugin would be to use the captured audio as source for a web audio node chain, where it then can be analyzed, manipulated and/or played.
https://github.com/edimuj/app-audioinput-demo
MIT License
161 stars 88 forks source link

This plugin is not working in Xiaomi devices #71

Closed kvharish closed 6 years ago

kvharish commented 6 years ago

This plugin is not working in Xiaomi devices. While debugging I can see that it is always getting permission value as granted but that is not the case. I am using Xiaomi MI6, MIUI 9.2 Stable (9.2.4.0).

edimuj commented 6 years ago

Which Android version? And can you confirm that this is an issue with all Xiaomi devices and not only MI6? It sounds like an permission only isue... any ideas of how to fix this?

edimuj commented 6 years ago

Since there has been no activity on this issue for some weeks now, Im closing it. Feel free to open again if you have more information.

kvharish commented 6 years ago

Sorry for replying late.

Found what the problem is. I was adding the plugin in config.xml straight away like

<plugin name="cordova-plugin-audioinput" spec="1.0.1"/>

Now I have added for iOS and Android separately

<platform name="ios">
    <plugin name="cordova-plugin-audioinput" spec="1.0.1"/>
</platform>

<platform name="android">
    <plugin name="cordova-plugin-audioinput" spec="1.0.1"/>
</platform>

Works like a charm.

edimuj commented 6 years ago

Thanks, @kvharish! No problems, I'm just glad that your found a solution and appreciate that you published it here for others to see that may have the same problem. I'm also looking into this myself.