Search…
Integrate the Telephony SDK
Integrate the Telephony SDK into your application

Prerequisites

Get Started

Integrate the iOS SDK

Add this line to your Podfile near the line pod 'SudoUser'
1
pod 'SudoTelephony'
Copied!
Install pod dependencies by running the following command in your project directory:
1
pod install --repo-update
Copied!
This will update the local CocoaPods repository and install the latest version of the Telephony SDK.
In order to instantiate a Telephony client, make sure you have followed instructions for Getting Started, User SDK and Sudo SDK (see Prerequisites above)
To instantiate a client in your application, add the following
Swift
1
import SudoTelephony
2
​
3
let userClient = // ... see "Users" docs
4
let profilesClient = // ... see "Sudos" docs
5
let callingProviderConfig = // .. Optional. see "Voice Call" docs
6
let telephonyClient = try! DefaultSudoTelephonyClient(
7
sudoUserClient: userClient,
8
sudoProfilesClient: profilesClient,
9
callProviderConfiguration: callingProviderConfig
10
)
Copied!
If you are integrating voice calling into your application, you must pass in a CallProviderConfiguration. Failure to do so will result in errors being returned when attempting to make a voice call.
You only need one client instance for a given user per device. Instantiating multiple clients with the same configuration and using them at the same time may cause unexpected runtime errors to occur.
See it in action. Be sure to take a look at the open source iOS sample app on GitHub that our team published as a reference for integrating the Telephony SDK into your app as quickly and seamlessly as possible.

Integrate the Android SDK

Add this line to the dependencies section of the app module build.gradle and run gradle sync
1
dependencies {
2
api 'com.sudoplatform:sudotelephony:$latest_version'
3
}
Copied!
The latest version of the SDK can be found at SDK Releases.
In order to instantiate a Telephony client, make sure you have followed instructions for Getting Started, User SDK and Sudo SDK (see Prerequisites above).
To instantiate a client in your application, add the following
Kotlin
1
val userClient = // ... see "Users" docs
2
val profilesClient = // ... see "Sudos" docs
3
​
4
val telephonyClient = DefaultSudoTelephonyClient(
5
appContext,
6
userClient,
7
profilesClient
8
)
Copied!
You only need one client instance for a given user per device. Instantiating multiple clients with the same configuration and using them at the same time may cause unexpected runtime errors to occur.
See it in action. Be sure to take a look at the open source Android sample app on GitHub that our team published as a reference for integrating the Telephony SDK into your app as quickly and seamlessly as possible.
Last modified 11mo ago