In my Ionic 2 application, I use the WebAudio API to record sound (based on https://github.com/mattdiamond/Recorderjs ). This works with Chrome and after entering the correct permissions in AndroidManifest.xml :
<uses-permission android:name="android.permission.RECORD_AUDIO" /> <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
and request access to the microphone through the cordova.plugins.diagnostic plugin, on Android version 6.0.1 (Samsung Galaxy S6).
However, it does not work on Android 4.2.2 (Samsung Galaxy S4), because it does not seem to support getUserMedia , so I decided to install the plugin for the crosswalk:
ionic plugin add cordova-plugin-crosswalk-webview
After that, I see that getUserMedia can be used (via Modernizr check). However, now the sound recorder returns only silence (in both versions of Android). I checked that the permissions are still set correctly. Any idea what could be wrong?
android crosswalk getusermedia crosswalk-runtime
dndr
source share