Installation and Initialization

The Rover SDK is a Cocoa Touch Framework written in Swift. The SDK is 100% open-source and available on GitHub.


Install the SDK

The recommended way to install the Rover SDK is via Cocoapods.

Add the Rover dependency to your Podfile.

pod 'Rover', '~> 3.0.0-beta.1'

Carthage

CocoaPods is the simplest approach to installing the Rover SDK but you can also use Carthage.

Add the following entry to your Cartfile:

github "RoverPlatform/rover-ios" ~> 3.0

Initialization

You must initialize the Rover SDK with your account token. You can find your account token in the Rover Settings app. Find the token labelled “SDK Token” and click the icon next to it to copy it to your clipboard.

Settings App

Import Rover in your app delegate and set the accountToken variable from within your application(_:didFinishLaunchingWithOptions:) method.

import Rover

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
    // ...
    Rover.accountToken = "<YOUR_SDK_TOKEN>"
    // ...
}