Skip to content

Commit 14232a2

Browse files
committed
2 parents 5286fee + 9dff69d commit 14232a2

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

ios/RNCallKeep/RNCallKeep.m

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,15 @@ + (void)reportNewIncomingCall:(NSString *)uuidString
372372
[RNCallKeep initCallKitProvider];
373373
[sharedProvider reportNewIncomingCallWithUUID:uuid update:callUpdate completion:^(NSError * _Nullable error) {
374374
RNCallKeep *callKeep = [RNCallKeep allocWithZone: nil];
375-
[callKeep sendEventWithName:RNCallKeepDidDisplayIncomingCall body:@{ @"error": error ? error.localizedDescription : @"", @"callUUID": uuidString, @"handle": handle, @"localizedCallerName": localizedCallerName, @"hasVideo": hasVideo ? @"1" : @"0", @"fromPushKit": fromPushKit ? @"1" : @"0", @"payload": payload }];
375+
[callKeep sendEventWithName:RNCallKeepDidDisplayIncomingCall body:@{
376+
@"error": error && error.localizedDescription ? error.localizedDescription : @"",
377+
@"callUUID": uuidString,
378+
@"handle": handle,
379+
@"localizedCallerName": localizedCallerName ? localizedCallerName : @"",
380+
@"hasVideo": hasVideo ? @"1" : @"0",
381+
@"fromPushKit": fromPushKit ? @"1" : @"0",
382+
@"payload": payload ? payload : @"",
383+
}];
376384
if (error == nil) {
377385
// Workaround per https://forums.developer.apple.com/message/169511
378386
if ([callKeep lessThanIos10_2]) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-callkeep",
3-
"version": "3.0.10",
3+
"version": "3.0.12",
44
"description": "iOS 10 CallKit and Android ConnectionService Framework For React Native",
55
"main": "index.js",
66
"scripts": {},

0 commit comments

Comments
 (0)