From 451806c547591fbe5714b133e704ffac9efb05d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C5=82a=C5=BCej=20Lewandowski?= Date: Sat, 31 Aug 2024 15:10:52 +0200 Subject: [PATCH] fix(expo-plugin): adding bg mode if none exist yet (#4126) --- src/expo-plugins/withBackgroundAudio.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(