-
Notifications
You must be signed in to change notification settings - Fork 767
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not able to record audio in Android 10 #322
Comments
android:requestLegacyExternalStorage="true" |
@yuganghe please read the last line of my question |
@erisu i have tried below github as well but not working. i have tested in android 10. please give some information. |
the solution that worked for me: since API 30 Android has restrictions on access to external storage. install file plugin : cordova plugin add cordova-plugin-file var onSuccess = function (e) { window.resolveLocalFileSystemURL(cordova.file.dataDirectory,function (directory) and it works for me !!!!! |
@kenfouo After a number of hours debugging this I finally got it working (my project is two years old): What worked for me: Then (without doing number 2 and 3 below I could not get it to work):
|
The following code works in Android 8:
However startRecord gives an error {code: 1} in Android 10.
What have I tried with same result:
I also tried to create file before recording:
The file is created but recording does not start.
Please tell if I am doing something wrong or if this plugin is not working with Android 10+ so I will not waste my days trying to make it work.
P.S. similar issues suggests requestLegacyExternalStorage flag but it is not solving problem anymore because Play Market now requires apps to use API level 30.
The text was updated successfully, but these errors were encountered: