Skip to Content

Install

Gradle (Kotlin DSL)

dependencies { implementation("io.onesygnal:android-sdk:0.1.0") }

Gradle (Groovy DSL)

dependencies { implementation "io.onesygnal:android-sdk:0.1.0" }

Maven

<dependency> <groupId>io.onesygnal</groupId> <artifactId>android-sdk</artifactId> <version>0.1.0</version> </dependency>

API key

Add your key to AndroidManifest.xml as a <meta-data> entry — the SDK reads it at initialize() time:

<application> <meta-data android:name="app.onesygnal.API_KEY" android:value="YOUR_API_KEY" /> </application>

Or set it in code before calling initialize() — see Configuration for the setApiKey() override and what happens if neither is set.

No other setup is required — the SDK talks to a fixed, compiled-in API host (https://sdk-api.1sygnal.app); there’s no equivalent of Web’s apiUrl option.