From version < 55.1 >
edited by Danmei Chen
on 2020/06/26 10:35
To version < 56.1 >
edited by Danmei Chen
on 2020/08/06 16:24
< >
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -47,7 +47,7 @@
47 47  pod install
48 48  {{/code}}
49 49  
50 -== ==
50 +== ==
51 51  
52 52  And you're done.
53 53  
... ... @@ -192,6 +192,15 @@
192 192   }
193 193  {{/code}}
194 194  
195 +=== Display an incoming call ===
196 +
197 +{{code language="swift"}}
198 +let update = CXCallUpdate()
199 +update.remoteHandle = CXHandle(type:.generic, value: "Call incoming")
200 +let uuid = UUID()
201 +provider.reportNewIncomingCall(with: uuid, update: update) {error in}
202 +{{/code}}
203 +
195 195  === Answer an incoming call ===
196 196  
197 197  Since iOS 13, Apple requests **CallKit **to be invoked to display the incoming call immediately when a **PushKit** notification is received. So sometimes you can answer the **CallKit** before a **LinphoneCall** is received. In the callback **CXAnswerCallAction**, if a **LinphoneCall** has not yet been received, you need to configure your **AVAudioSession** and accept the call when you receive it. Otherwise, accept the call directly.
... ... @@ -304,7 +304,6 @@
304 304  * For callkit, an unique uuid represents a call.
305 305  * For Linphone, the referred call will use a different callid than the original call.
306 306  
307 -
308 308  Here is the integration of callkit in [[linphone-iphone/ProviderDelegate.swift>>https://gitlab.linphone.org/BC/public/linphone-iphone/blob/master/Classes/ProviderDelegate.swift]].
309 309  
310 310  == Technical solutions to advertise instant messages ==
... ... @@ -550,7 +550,7 @@
550 550  (% class="col-xs-12 col-sm-4" %)
551 551  (((
552 552  {{box title="**Contents**"}}
553 -{{toc /}}
561 +{{toc/}}
554 554  {{/box}}
555 555  )))
556 556  )))