Skip to content

Commit a0eb87a

Browse files
committed
readme: update reportNewIncomingCall example in AppDelegate.m
1 parent 4654eb1 commit a0eb87a

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,18 @@ Since iOS 13, you'll have to report the incoming calls that wakes up your applic
790790
// NSString *handle = @"caller number here";
791791
// NSDictionary *extra = [payload.dictionaryPayload valueForKeyPath:@"custom.path.to.data"]; /* use this to pass any special data (ie. from your notification) down to RN. Can also be `nil` */
792792

793-
[RNCallKeep reportNewIncomingCall:uuid handle:handle handleType:@"generic" hasVideo:false localizedCallerName:callerName fromPushKit: YES payload:extra withCompletionHandler:completion];
793+
[RNCallKeep reportNewIncomingCall: uuid
794+
handle: handle
795+
handleType: @"generic"
796+
hasVideo: NO
797+
localizedCallerName: callerName
798+
supportsHolding: YES
799+
supportsDTMF: YES
800+
supportsGrouping: YES
801+
supportsUngrouping: YES
802+
fromPushKit: YES
803+
payload: extra
804+
withCompletionHandler: completion];
794805
}
795806
```
796807

0 commit comments

Comments
 (0)