Skip to content

Overview

The Orchestration SDK for iOS allows your mobile application to communicate with Mosaic, run journeys, and submit client input. It abstracts the communication protocol and manages state between the client and server throughout a journey's lifecycle.

Capabilities

  • Start and manage journeys from the client side
  • Handle journey steps and submit client responses
  • Maintain state between server responses and client input
  • Delegate-based async processing of server responses
  • Support for client-facing journey steps

Requirements

  • iOS 13.0+
  • Xcode 13.0+

Installation

Important

The Orchestration SDK is no longer published to CocoaPods. Versions up to 1.2.5 remain available but won't receive updates. To migrate to Swift Package Manager, remove the SDK from your Podfile, run pod install, and add the Swift package as described below.

Add the package dependency to your Xcode project or Package.swift:

dependencies: [
    .package(url: "https://github.com/TransmitSecurity/identityOrchestration-ios-sdk.git", .upToNextMajor(from: "1.0.0"))
]

Initialization

The SDK can be initialized using either a plist configuration file or SDK parameters.

Create a TransmitSecurity.plist file in your project:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>credentials</key>
	<dict>
		<key>baseUrl</key>
		<string>[BASE_URL]</string> <!--Default is https://api.transmitsecurity.io.-->
		<key>clientId</key>
		<string>[CLIENT_ID]</string>
	</dict>
</dict>
</plist>

Initialize the SDK at app launch:

do {
    try TSIdo.initializeSDK()
    TSIdo.delegate = self
} catch {
    debugPrint("[DEBUG]: \(error)")
}

Configure the base server URL based on your region:

RegionBase URL
UShttps://api.transmitsecurity.io/
EUhttps://api.eu.transmitsecurity.io/
Canadahttps://api.ca.transmitsecurity.io/
Australiahttps://api.au.transmitsecurity.io/
Japanhttps://api.gasne1-ts01.transmitsecurity.io/
Sandboxhttps://api.sbx.transmitsecurity.io/
Custom domainhttps://<your-domain>.com/ (see Custom domains). Also enables app-specific signing keys for journeys.
App subdomainhttps://<prefix>.app.transmitsecurity.io/, or its regional variant (see Application domain). Also enables app-specific signing keys for journeys.

Next steps