The SkylinkSDK for iOS lets you build real time webRTC applications with voice calling, video chat, P2P file sharing or data and messages exchange. Go multi-platform with our Web and Android SDKs.
Your project should use ARC
iOS 10.0 or higher.
You can install the SkylinkSDK for iOS via CocoaPods, or Carthage. If you do not have it installed, follow the below steps:
Check that you have Xcode command line tools installed (Xcode > Preferences > Locations > Command line tools(?). If not, open the terminal and run xcode-select --install
.
Install cocoa pods in the terminal: $ sudo gem install cocoapods
Download and run the Carthage.pkg file for the latest release, then follow the on-screen instructions. If you are installing the pkg via CLI, you might need to run sudo chown -R $(whoami) /usr/local first
If you are using CocoaPods, add the following line to your Podfile:
pod "SKYLINK"
#If facing issues with installation, please use:
#pod 'SKYLINK', :git => 'https://github.com/Temasys/SKYLINK-iOS.git'
If you are using Carthage, add the following line to your Cartfile:
git "https://github.com/Temasys/SKYLINK-iOS.git"
Follow the instructions here to create an App and a key on the Temasys Console.
To create a Swift project using Teamsys iOS SDK, follow these steps:
Your Podfile should look like that:
project 'SampleApp_Swift.xcodeproj'
platform :ios, '10.0'
target 'SampleApp_Swift' do
use_frameworks!
pod "SKYLINK"
#If facing issues with installation, please use:
#pod 'SKYLINK', :git => 'https://github.com/Temasys/SKYLINK-iOS.git'
end
In the terminal, run pod install
Your Cartfile should look like that:
git "https://github.com/Temasys/SKYLINK-iOS.git"
In the terminal, run carthage update
#####Note: If you install by Carthage and the installation is successful, you have to link the frameworks to your project, in Xcode, go to "TARGETS" --> "Frameworks, Libraries, and Embedded Content", click "+", in the prompted window "Choose frameworks and libraries to add:", click "Add Other...", "Add Files...", in the prompted window, choose "Carthage" --> "Checkouts" --> "SKYLINK-iOS" --> "frameworks", select all the four frameworks here, then click open, you will see the four frameworks added into your "Frameworks, Libraries, and Embedded Content" window. After that, build your project, see if there is any error
Create the Project-Bridging-Header.h
and refer to it in build settings (swift compiler section)
Add #import <SKYLINK/SKYLINK.h>
to the newly created file
You should be able to run your project after this, and use Temasys iOS SDK with Swift.
-
After running 'pod install', use the .xcworkspace file. Do not work with the .xcodeproj file.
-
For each target planned for use with the SkylinkSDK for iOS:
go to Build settings (make sure “all” is selected) >
Build Options >
Enable bit code and set it to NO.
This will avoid the “…does not contain bitcode” message -
Optionally, if you want your app to be able to process audio even when the users leaves the app or locks the device, just enable the VoIP background capability or the audio background capability in the target’s “capabilities” tab.
-
You may need to specify the swift language version in some pod targets. Use Swift 5.
The SkylinkSDK for iOS is designed to be simple to use. The main idea when using it 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 connected to the same "room".
See our Swift and Objective C Sample apps for usage instructions and examples.
SDK Documentation
Getting started with Temasys iOS SDK for iOS
Handle the video view stretching
FAQs
Star this repo to be notified of new release tags. You can also view release notes on our support portal
Please do not hesitate to reach get in touch with us if you encounter any issue or if you have any feedback or suggestions on how we can improve the Skylink SDK for iOS or Sample Applications. You can raise tickets on our support portal.