---
title: "Mobile Intro"
canonical_url: "https://apidocs.sportradar.com/resources/virtual-stadium/docs/mobileIntro"
markdown_url: "https://apidocs.sportradar.com/resources/virtual-stadium/docs/mobileIntro.md"
last_updated: "2026-03-24T14:48:32Z"
---

# Mobile Intro

## Android

### Add in Root `build.gradle.kts` Or `settings.gradle.kts`:

```kotlin
repositories {
    ...
    maven("https://gitlab.sportradar.ag/api/v4/projects/10424/packages/maven")
}
```

### Add in App `build.gradle.kts`: (Current Version: ![current version](https://img.shields.io/endpoint?url=https://artifacts.vs.sportradar.com/virtualstadium/datasdk/virtual-stadium-data-sdk/version-production.json))

```kotlin
dependencies {
    implementation("ag.sportradar.virtualstadium.datasdk:shared-android:<data-sdk-version>")
    ...
}
```

### First You Need to Initialize the SDK - We Suggest You Do This in the Application Class:

```kotlin
class VirtualStadiumApp : Application() {

    override fun onCreate() {
        super.onCreate()

        VirtualStadiumSDK.init(<applicationContext>)
        ...
    }
}
```

## iOS

### Swift Package Manager

Add the following package:

- <https://github.com/sportradar/VirtualStadium-SDK-Core>

Select version and add the package. Import `VirtualStudioDataSDK` where needed.

### Cocoapods

Add the following to your `Podfile`:

```ruby
source 'https://github.com/sportradar/VirtualStadium-SDK-Core-Pods.git'

target '<your target>' do
  pod 'VirtualStadiumDataSDK', '0.1.361'
end
```

Run `pod install`, then open the `xcworkspace` project file.

Import `VirtualStadiumDataSDK` in files where it's needed:

```swift
import VirtualStadiumDataSDK
```

### Data SDK Initialization

Data SDK needs to be initialized before it can be used. To initialize the SDK, you need to pass two parameters to the `doInit(_:)` function:

- `context(Any)`: The `UserDefaults` class that provides a programmatic interface for interacting with the defaults system.

Here’s an example of how to initialize the Data SDK:

```swift
class SDKManager {

    // MARK: - Variables
    let sdk: VirtualStadiumSDK = VirtualStadiumSDK()

    init(jwtToken: String) {
        sdk.doInit(context: UserDefaults())
    }
}
```

After a successful initialization, you can start using the SDK to fetch and send data.
