rns-nativecall 0.8.5 → 0.8.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/withNativeCallVoip.js +10 -10
package/package.json
CHANGED
package/withNativeCallVoip.js
CHANGED
|
@@ -169,16 +169,16 @@ function withIosConfig(config, props = {}) {
|
|
|
169
169
|
// Explicit check: only disable if strictly false
|
|
170
170
|
const enableAudio = iosBackgroundAudio !== false;
|
|
171
171
|
|
|
172
|
-
if (enableAudio) {
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
} else {
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
}
|
|
172
|
+
// if (enableAudio) {
|
|
173
|
+
// if (!infoPlist.UIBackgroundModes.includes('audio')) {
|
|
174
|
+
// infoPlist.UIBackgroundModes.push('audio');
|
|
175
|
+
// }
|
|
176
|
+
// } else {
|
|
177
|
+
// infoPlist.UIBackgroundModes = infoPlist.UIBackgroundModes.filter(
|
|
178
|
+
// (mode) => mode !== 'audio'
|
|
179
|
+
// );
|
|
180
|
+
// console.log(`[rns-nativecall] 'audio' background mode removed.`);
|
|
181
|
+
// }
|
|
182
182
|
|
|
183
183
|
['voip', 'remote-notification'].forEach(mode => {
|
|
184
184
|
if (!infoPlist.UIBackgroundModes.includes(mode)) {
|