iOS
iOS Native SDK

Installation

The Cobrowse SDK for iOS is available for installation via several dependency managers, or as frameworks to integrate directly into your project:
SPM
Pods
Carthage
Manual
1
https://github.com/cobrowseio/cobrowse-sdk-ios-binary.git
Copied!
1
pod 'CobrowseIO', '~>2'
Copied!
Don't forget to run pod repo update then pod install after you've edited your Podfile.
Make sure you are on the latest stable version of Pods. Run pod --version to check!
Note: Depending on your project, you may also need use_frameworks! in your Podfile.
1
github "cobrowseio/cobrowse-sdk-ios-binary" ~> 2.0
Copied!
Don't forget to run carthage update after you've edited your Cartfile.
Frameworks are available for manual integration into your Xcode projects from:
1
https://github.com/cobrowseio/cobrowse-sdk-ios-binary/releases
Copied!
Configure the SDK in your app:
Swift
Objective-C
1
import CobrowseIO
2
3
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool
4
{
5
CobrowseIO.instance().license = "put your license key here"
6
CobrowseIO.instance().start()
7
return true
8
}
Copied!
1
@import CobrowseIO;
2
3
- (BOOL)application:(UIApplication*) application didFinishLaunchingWithOptions:(NSDictionary*) launchOptions
4
{
5
CobrowseIO.instance.license = @"put your license key here";
6
[CobrowseIO.instance start];
7
return YES;
8
}
Copied!
Important: Do this in your application:didFinishLaunchingWithOptions: implementation to make sure your device shows up in your dashboard right away.

Add your License Key

Please register an account and generate your free License Key at https://cobrowse.io/dashboard/settings.
This will associate sessions from your mobile app with your Cobrowse account.

Try it out

Once you have your app running in the iOS Simulator or on a physical device, navigate to https://cobrowse.io/dashboard to see your device listed. You can click the "Connect" button to initiate a Cobrowse session!

Requirements

    iOS 9.0 or later

Advanced configuration

Any questions at all? Please email us at [email protected].
Last modified 2mo ago