Native Android SDK for embedding SecondStreet promotions inside any Android app — no browser takeover.
dependencyResolutionManagement {
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}
}dependencies {
implementation 'com.github.secondstreet:ss-android-sdk:1.0.0'
}PromotionKit.show(
activity = this,
promoId = "your-promo-id"
)PromotionKit.show(
activity = this,
promoId = "your-promo-id",
userId = currentUser.id,
token = currentUser.authToken
)PromotionKit.attach(
activity = this,
promoId = "your-promo-id",
mode = PromotionMode.FloatingButton(
icon = "🎁",
label = "Win a Prize"
),
heightPercent = 90
)PromotionKit.show(
activity = this,
promoId = "your-promo-id",
listener = object : PromotionListener {
override fun onComplete(promoId: String, reward: Map<String, Any>?) {
val coupon = reward?.get("couponCode") as? String
}
override fun onClose(promoId: String) { }
override fun onError(promoId: String, error: PromotionError) { }
}
)| Parameter | Type | Default | Description |
|---|---|---|---|
promoId |
String | required | Your promotion ID |
userId |
String? | null | Optional user ID |
token |
String? | null | Optional auth token |
baseUrl |
String | promos.secondstreet.com | Your platform base URL |
heightPercent |
Int | 100 | Screen height % (100 = full, 90 = 90%) |
- Android API 21+
- Internet permission (auto-included)