@@ -132,7 +132,7 @@ - (void)dealloc
132
132
callUpdate.supportsHolding = YES ;
133
133
callUpdate.supportsGrouping = YES ;
134
134
callUpdate.supportsUngrouping = YES ;
135
- callUpdate.hasVideo = NO ;
135
+ callUpdate.hasVideo = hasVideo ;
136
136
callUpdate.localizedCallerName = localizedCallerName;
137
137
138
138
[self .callKeepProvider reportNewIncomingCallWithUUID: uuid update: callUpdate completion: ^(NSError * _Nullable error) {
@@ -247,11 +247,12 @@ - (void)requestTransaction:(CXTransaction *)transaction
247
247
CXStartCallAction *startCallAction = [transaction.actions firstObject ];
248
248
CXCallUpdate *callUpdate = [[CXCallUpdate alloc ] init ];
249
249
callUpdate.remoteHandle = startCallAction.handle ;
250
+ callUpdate.hasVideo = startCallAction.video ;
251
+ callUpdate.localizedCallerName = startCallAction.contactIdentifier ;
250
252
callUpdate.supportsDTMF = YES ;
251
253
callUpdate.supportsHolding = YES ;
252
254
callUpdate.supportsGrouping = YES ;
253
255
callUpdate.supportsUngrouping = YES ;
254
- callUpdate.hasVideo = NO ;
255
256
[self .callKeepProvider reportCallWithUUID: startCallAction.callUUID updated: callUpdate];
256
257
}
257
258
}
@@ -433,6 +434,19 @@ - (void)provider:(CXProvider *)provider performStartCallAction:(CXStartCallActio
433
434
[action fulfill ];
434
435
}
435
436
437
+ // Update call contact info
438
+ RCT_EXPORT_METHOD (reportUpdatedCall:(NSString *)uuidString contactIdentifier:(NSString *)contactIdentifier)
439
+ {
440
+ #ifdef DEBUG
441
+ NSLog (@" [RNCallKeep][reportUpdatedCall] contactIdentifier = %i " , contactIdentifier);
442
+ #endif
443
+ NSUUID *uuid = [[NSUUID alloc ] initWithUUIDString: uuidString];
444
+ CXCallUpdate *callUpdate = [[CXCallUpdate alloc ] init ];
445
+ callUpdate.localizedCallerName = contactIdentifier;
446
+
447
+ [self .callKeepProvider reportCallWithUUID: uuid updated: callUpdate];
448
+ }
449
+
436
450
// Answering incoming call
437
451
- (void )provider : (CXProvider *)provider performAnswerCallAction : (CXAnswerCallAction *)action
438
452
{
0 commit comments