Skip to content

Commit a11913d

Browse files
committed
readme: update reportNewIncomingCall example in AppDelegate.m
1 parent 0af9f9e commit a11913d

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
@@ -712,7 +712,18 @@ Since iOS 13, you'll have to report the incoming calls that wakes up your applic
712712
// NSString *handle = @"caller number here";
713713
// 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` */
714714

715-
[RNCallKeep reportNewIncomingCall:uuid handle:handle handleType:@"generic" hasVideo:false localizedCallerName:callerName fromPushKit: YES payload:extra withCompletionHandler:completion];
715+
[RNCallKeep reportNewIncomingCall: uuid
716+
handle: handle
717+
handleType: @"generic"
718+
hasVideo: NO
719+
localizedCallerName: callerName
720+
supportsHolding: YES
721+
supportsDTMF: YES
722+
supportsGrouping: YES
723+
supportsUngrouping: YES
724+
fromPushKit: YES
725+
payload: extra
726+
withCompletionHandler: completion];
716727
}
717728
```
718729

0 commit comments

Comments
 (0)