Quickstart — Android
1. Add the SDK
2. Create (or open) your Application class
package com.acme.app
import android.app.Application
import tools.amply.sdk.Amply
import tools.amply.sdk.config.amplyConfig
class AmplyApp : Application() {
lateinit var amply: Amply
private set
override fun onCreate() {
super.onCreate()
val config = amplyConfig {
api {
appId = "com.acme.app"
apiKeyPublic = "YOUR_PUBLIC_KEY"
apiKeySecret = "YOUR_SECRET_KEY"
}
}
amply = Amply(config, this)
}
}3. Track your first event
4. Session lifecycle (nothing to do)
5. Turn on logs while you verify
6. Verify in the dashboard
What's next
Related
Last updated