MOBILE-3833 audio: Allow capture audio in app in Android 10+
This was disabled before because there was a bug in the Cordova plugin, but it seems to be fixed nowmain
parent
7a718a727c
commit
4aeababbf6
|
@ -550,10 +550,8 @@ export class CoreFileUploaderHelperProvider {
|
|||
media = medias[0]; // We used limit 1, we only want 1 media.
|
||||
} catch (error) {
|
||||
|
||||
if (isAudio && this.isNoAppError(error) && CoreApp.isMobile() &&
|
||||
(!Platform.is('android') || CoreApp.getPlatformMajorVersion() < 10)) {
|
||||
if (isAudio && this.isNoAppError(error) && CoreApp.isMobile()) {
|
||||
// No app to record audio, fallback to capture it ourselves.
|
||||
// In Android it will only be done in Android 9 or lower because there's a bug in the plugin.
|
||||
try {
|
||||
media = await CoreFileUploader.captureAudioInApp();
|
||||
} catch (error) {
|
||||
|
|
Loading…
Reference in New Issue