diff --git a/src/expo-plugins/withBackgroundAudio.ts b/src/expo-plugins/withBackgroundAudio.ts index abaf8e5d..fe9a6121 100644 --- a/src/expo-plugins/withBackgroundAudio.ts +++ b/src/expo-plugins/withBackgroundAudio.ts @@ -13,7 +13,7 @@ export const withBackgroundAudio: ConfigPlugin = ( if (enableBackgroundAudio) { if (!modes.includes('audio')) { - modes.push('audio'); + config.modResults.UIBackgroundModes = [...modes, 'audio']; } } else { config.modResults.UIBackgroundModes = modes.filter(