Skip to content

Commit

Permalink
fix: ensure microphone usage description is not overwriting existing …
Browse files Browse the repository at this point in the history
…if set
  • Loading branch information
simonwh committed Nov 24, 2024
1 parent 6bb4e9f commit afb3028
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit afb3028

Please sign in to comment.