@@ -151,7 +151,7 @@ + (void)initCallKitProvider {
151151 hasVideo:(BOOL )hasVideo
152152 localizedCallerName:(NSString * _Nullable)localizedCallerName)
153153{
154- [RNCallKeep reportNewIncomingCall: uuidString handle: handle handleType: handleType hasVideo: hasVideo localizedCallerName: localizedCallerName fromPushKit: NO payload: nil ];
154+ [RNCallKeep reportNewIncomingCall: uuidString handle: handle handleType: handleType hasVideo: hasVideo localizedCallerName: localizedCallerName fromPushKit: NO payload: nil withCompletionHandler: nil ];
155155}
156156
157157RCT_EXPORT_METHOD (startCall:(NSString *)uuidString
@@ -340,6 +340,7 @@ + (void)reportNewIncomingCall:(NSString *)uuidString
340340 localizedCallerName : (NSString * _Nullable)localizedCallerName
341341 fromPushKit : (BOOL )fromPushKit
342342 payload : (NSDictionary * _Nullable)payload
343+ withCompletionHandler : (void (^_Nullable)(void ))completion
343344{
344345#ifdef DEBUG
345346 NSLog (@" [RNCallKeep][reportNewIncomingCall] uuidString = %@ " , uuidString);
@@ -373,6 +374,9 @@ + (void)reportNewIncomingCall:(NSString *)uuidString
373374 [callKeep configureAudioSession ];
374375 }
375376 }
377+ if (completion != nil ) {
378+ completion ();
379+ }
376380 }];
377381}
378382
@@ -383,7 +387,7 @@ + (void)reportNewIncomingCall:(NSString *)uuidString
383387 localizedCallerName : (NSString * _Nullable)localizedCallerName
384388 fromPushKit : (BOOL )fromPushKit
385389{
386- [RNCallKeep reportNewIncomingCall: uuidString handle: handle handleType: handleType hasVideo: hasVideo localizedCallerName: localizedCallerName fromPushKit: fromPushKit payload: nil ];
390+ [RNCallKeep reportNewIncomingCall: uuidString handle: handle handleType: handleType hasVideo: hasVideo localizedCallerName: localizedCallerName fromPushKit: fromPushKit payload: nil withCompletionHandler: nil ];
387391}
388392
389393- (BOOL )lessThanIos10_2
0 commit comments