Skip to content

Commit

Permalink
Update CallKit Methods ReadMe
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacakakpo1 committed Oct 11, 2023
1 parent 10e7486 commit e012f1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -546,15 +546,15 @@ to provide the native call interface to the user.
}
```

3. When user answers a call : Use `provider.reportOutgoingCall(with: callKitUUID, connectedAt:nil)` to report a connected outgoing call. This informs callKit
about when the call was actua
3. When callee answers an outgoing call : Use `provider.reportOutgoingCall(with: callKitUUID, connectedAt:nil)` to report a connected outgoing call. This informs callKit about what time an outgoing call went active.
```Swift
if let provider = self.callKitProvider,
let callKitUUID = self.callKitUUID {
let date = Date()
provider.reportOutgoingCall(with: callKitUUID, connectedAt:date)
}
```
NB : This should be used only when the call is outgoing.


### Best Practices when Using PushNotifications with Callkit.
Expand Down

0 comments on commit e012f1f

Please sign in to comment.