From afb302804a0ccd4d6b1b4b18f282a92aad33c312 Mon Sep 17 00:00:00 2001 From: Simon Westh Henriksen Date: Sun, 24 Nov 2024 10:06:35 +0100 Subject: [PATCH] fix: ensure microphone usage description is not overwriting existing if set --- plugin/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/src/index.ts b/plugin/src/index.ts index b7d43d7..4304c5f 100644 --- a/plugin/src/index.ts +++ b/plugin/src/index.ts @@ -14,7 +14,7 @@ const withRecordingPermission: ConfigPlugin<{ console.warn('No previous permissions provided') } config = withInfoPlist(config, (config) => { - config.modResults['NSMicrophoneUsageDescription'] = MICROPHONE_USAGE + config.modResults['NSMicrophoneUsageDescription'] = config.modResults['NSMicrophoneUsageDescription'] || MICROPHONE_USAGE // Add audio to UIBackgroundModes to allow background audio recording const existingBackgroundModes =