rns-nativecall 1.3.7 → 1.3.8

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/ios/CallModule.m CHANGED
@@ -186,7 +186,6 @@ RCT_EXPORT_METHOD(checkCallStatus:(NSString *)uuidString
186
186
  }
187
187
  }
188
188
 
189
-
190
189
  - (void)provider:(CXProvider *)provider performAnswerCallAction:(CXAnswerCallAction *)action {
191
190
  [action fulfill];
192
191
 
@@ -202,8 +201,6 @@ RCT_EXPORT_METHOD(checkCallStatus:(NSString *)uuidString
202
201
  });
203
202
  }
204
203
 
205
-
206
-
207
204
  - (void)provider:(CXProvider *)provider performEndCallAction:(CXEndCallAction *)action {
208
205
  [action fulfill];
209
206
  self.isCallActive = NO;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rns-nativecall",
3
- "version": "1.3.7",
3
+ "version": "1.3.8",
4
4
  "description": "High-performance React Native module for handling native VoIP call UI on Android and iOS.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -235,12 +235,24 @@ function withIosAppDelegateMod(config) {
235
235
  function withIosConfig(config, props = {}) {
236
236
  return withInfoPlist(config, (config) => {
237
237
  const infoPlist = config.modResults;
238
+
239
+ // 1. Existing Background Modes
238
240
  if (!infoPlist.UIBackgroundModes) infoPlist.UIBackgroundModes = [];
239
241
  ['voip', 'remote-notification'].forEach(mode => {
240
242
  if (!infoPlist.UIBackgroundModes.includes(mode)) {
241
243
  infoPlist.UIBackgroundModes.push(mode);
242
244
  }
243
245
  });
246
+
247
+ // 2. 🔑 The Fix for the Error: Whitelist the scheme
248
+ const scheme = config.scheme || 'dorm'; // fallback to raiidr
249
+ if (!infoPlist.LSApplicationQueriesSchemes) {
250
+ infoPlist.LSApplicationQueriesSchemes = [];
251
+ }
252
+ if (!infoPlist.LSApplicationQueriesSchemes.includes(scheme)) {
253
+ infoPlist.LSApplicationQueriesSchemes.push(scheme);
254
+ }
255
+
244
256
  return config;
245
257
  });
246
258
  }