Getting Started with the Temasys SDK for iOS

A step-by-step guide to embedding Real-Time Communication features into your iOS application

This document is designed to help developers get started using the Temasys SDK for iOS to add video & voice calling, secure messaging, and more to their iOS application. Let’s get started!

Step 1: Create an Account on the Temasys Console and Generate an App Key

Here are instructions for creating an account and generating an App Key. 

Step 2: Set up a new Xcode project workspace

These are the simple steps to set up an empty Xcode project.

We recommend you install the SDK via Cocoapods. If you don’t have Cocoapods installed, please follow these steps:

Step 3: Install the Temasys SDK for iOS

Step 4: Configure Settings

STEP 5: Initializing the Temasys SDK for iOS

The main idea is to prepare and create a connection to a room via the Temasys platform. After that, you will be able to send messages to the connection and implement the desired protocols to control what happens between the local device and the peers.

Temasys SDK for iOS provides 3 classes:

Here is an example connection code:

// Creating configuration
SKYLINKConnectionConfig *config = [SKYLINKConnectionConfig new];
config.video = YES;
config.audio = YES;

// Creating SKYLINKConnection
self.skylinkConnection = [[SKYLINKConnection alloc] initWithConfig:config appKey:self.skylinkApiKey];
self.skylinkConnection.lifeCycleDelegate = self;
self.skylinkConnection.mediaDelegate = self;
self.skylinkConnection.remotePeerDelegate = self;

// Connecting to a room
[self.skylinkConnection connectToRoomWithSecret:self.skylinkApiSecret roomName:ROOM_NAME userInfo:nil];

Step 6: Implement Protocols

The common next step is to implement protocols. The Temasys SDK for iOS provides 6 protocols:

The SKYLINKConnectionLifeCycleDelegate and the SKYLINKConnectionRemotePeerDelegate are the most important. These will give you general details about the lifecycle and the peers that are joining and leaving your application. It is advised to implement them for all applications.

MediaDelegates need to be implemented if you are using the Temasys SDK for simply adding video/voice communication capabilities. Similarly, MessagesDelegate and FileTransferDelegate can be implemented based on whether you require messaging and data transfer capabilities for your application. You get the idea!

That’s about it. We can’t wait to see what you’ll create with Temasys technology!

We hope you enjoy getting started with the Temasys SDK for iOS! Have fun, share this and let us know if you run into any issues!

ADDITIONAL RESOURCES

Here are some useful links:

Temasys Developer Console

How to get support or contribute

Sample App

Have a look at the iOS Sample App and its readme on Github. It provides simple example ways to build video calls, multi-party video calls, audio calls, chat rooms and file transfer rooms. https://github.com/Temasys/SkylinkSDK-iOS-Sample

This document applies to Temasys SkylinkSDK for iOS version 1.2.0

Leave a Reply

Your email address will not be published. Required fields are marked *

Comments

No comments yet.