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.

Home Page:https://github.com/edimuj/app-audioinput-demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This plugin is not working in Xiaomi devices

kvharish opened this issue · comments

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).

commented

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?

commented

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.

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.

commented

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.