Initializing the Seam Mobile SDK
1. Install the Seam SDK
// getPropertyOrNull is a helper function defined in settings.gradle.kts
// to safely read properties from local.properties
fun getPropertyOrNull(propertyName: String): String? {
val propertiesFile = file("local.properties")
if (!propertiesFile.exists()) return null
val properties = Properties()
properties.load(propertiesFile.inputStream())
return properties.getProperty(propertyName, null)
}
// settings.gradle.kts
repositories {
// ... other repositories
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/seampkg/seam-mobile-sdk")
credentials {
username = getPropertyOrNull("seamUsername")
password = getPropertyOrNull("seamPat")
}
}
}Credential
Description
Where to get it
2. Implement any Manufacturer- and Mobile OS-Specific Requirements
Manufacturer-Specific Requirements
iOS Requirement
3. Configure a User Identity for your App User and Generate a Client Session Token
4. Initialize the Mobile SDK with the Client Session Token
Initialization and Error Handling
Credential Errors
Last updated
Was this helpful?

