Zoom SDK Integration for iOS — Swift

Initial Setup

1. Project Setup

  1. Register your app ID and create the provisioning profiles.
  2. If you don’t want to test this demo app on the iOS device, you can skip the above step. I prefer you to do :)
  3. Else you can continue the testing in the simulator itself.

2. Download the Zoom SDK

3. Add Zoom SDK into you iOS project

  1. Select MobileRTC framework and MobileRTCResources bundle files from the downloaded Zoom SDK folder

4 . Delete SceneDelegates

  1. Application Scene Manifest from the info.plist file

Run you app

Creating Zoom Account

  1. Create SDK app and fill all details

Authenticate Zoom SDK

func setupSDK(_ sdkKey: String?, sdkSecret: String?) {
let context = MobileRTCSDKInitContext()
context.domain = "zoom.us"
context.enableLog = true
let sdkInitSuc = MobileRTC.shared().initialize(context)
if sdkInitSuc {
let authService = MobileRTC.shared().getAuthService()
if let authService = authService {
authService.clientKey = sdkKey
authService.clientSecret = sdkSecret
authService.delegate = self
authService.sdkAuth()
}}
}
extension AppDelegate :MobileRTCAuthDelegate{func onMobileRTCAuthReturn(_ returnValue: MobileRTCAuthError) {switch returnValue {case MobileRTCAuthError_Success:
print("SDK successfully initialized.")
case MobileRTCAuthError_KeyOrSecretEmpty:
print("SDK key/secret was not provided. Replace sdkKey and sdkSecret at the top of this file with your SDK key/secret.")
case MobileRTCAuthError_KeyOrSecretWrong:
print("SDK key/secret is not valid.")
case MobileRTCAuthError_Unknown:
print("SDK key/secret is not valid.")
default:
print("SDK Authorization failed with MobileRTCAuthError: \(returnValue)")
}
}

Run you app

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store