Skip to content
This repository was archived by the owner on Jan 18, 2020. It is now read-only.

Commit 916a91c

Browse files
New feature of 4.0 (#175)
* New feature of 4.0 * Reference 4.0 in the version guidance note * 3 -> 4
1 parent 964aa4c commit 916a91c

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

Docs/new-features-4.0.md

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
## SDK 4.0 New Features
2+
Voice iOS SDK 4.0 introduced a new call state: `TVOCallStateReconnecting`. You will need to update any logic you have implemented that relies on the call state. The simplest approach is to treat a `TVOCallStateReconnecting` just like a `TVOCallStateConnected` and keep the current behavior.
3+
4+
For more advanced behaviour, you can make use of TVOCallDelegate’s new protocol methods `call:isReconnectingWithError:` and `callDidReconnect:` to update the UI for example and indicate the ongoing disruption.
5+
6+
For example:
7+
8+
```
9+
- (void)call:(TVOCall *)call isReconnectingWithError:(NSError *)error {
10+
NSLog(@"Call is reconnecting");
11+
12+
// Update UI
13+
// Check the error: It could be either
14+
// TVOErrorSignalingConnectionDisconnectedError (53001) or
15+
// TVOErrorMediaConnectionError (53405).
16+
}
17+
18+
- (void)callDidReconnect:(TVOCall *)call {
19+
NSLog(@"Call reconnected");
20+
21+
// Update UI
22+
}
23+
```

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# Twilio Voice Objective-C Quickstart for iOS
22

3-
> NOTE: These sample applications use the Twilio Voice 3.x APIs. For examples using our 2.x APIs, please see the [2.x](https://github.com/twilio/voice-quickstart-objc/tree/2.x) branch. If you are using SDK 2.x, we highly recommend planning your migration to 3.0 as soon as possible. Support for 2.x will cease 1/1/2020. Until then, SDK 2.x will only receive fixes for critical or security related issues.
3+
> NOTE: These sample applications use the Twilio Voice 4.x APIs. For examples using our 2.x APIs, please see the [2.x](https://github.com/twilio/voice-quickstart-objc/tree/2.x) branch. If you are using SDK 2.x, we highly recommend planning your migration to 4.0 as soon as possible. Support for 2.x will cease 1/1/2020. Until then, SDK 2.x will only receive fixes for critical or security related issues.
44
55
## Get started with Voice on iOS:
66
* [Quickstart](#quickstart) - Run the quickstart app
7-
* [New Features](Docs/new-features-3.0.md) - New features in 3.0
7+
* [4.0 New Features](Docs/new-features-4.0.md) - New features in 4.0
8+
* [3.0 New Features](Docs/new-features-3.0.md) - New features in 3.0
89
* [Migration Guide](Docs/migration-guide-2.x-3.x.md) - Migrating from 2.X to 3.x
910
* [Access Tokens](#access-tokens) - Using access tokens
1011
* [Managing Audio Interruptions](#managing-audio-interruptions) - Managing audio interruptions

0 commit comments

Comments
 (0)