This SDK is built and maintained by our community and might not be up to date with the latest Novu features.

Novu’s Kotlin SDK provides simple, yet comprehensive notification management, and delivery capabilities through multiple channels that you can implement using code that integrates seamlessly with your Kotlin application.

Explore the source code on GitHub

Installation

Maven users:

<dependency>
  <groupId>co.novu</groupId>
  <artifactId>novu-kotlin</artifactId>
  <version>{use-latest-version}</version>
</dependency>

The latest version can be found on GitHub.

Gradle users:

implementation 'co.novu:novu-kotlin:{use-latest-version}' //Groovy

implementation ("co.novu:novu-kotlin:{use-latest-version}") //Kotlin

Sync your project, and you should have the artifacts downloaded.

 If you’re ready to start integrating in your Kotlin app, jump straight to our Kotlin quickstart.

Usage


// without changing the backend URL
import co.novu.Novu
import co.novu.extentions.environments

fun main() {
    val novu = Novu(apiKey = "NOVU_SECRET_KEY")
    val environment = novu.environments()
    println(environment)
}

Was this page helpful?