Android SDK

Kotlin client for native Android applications.

Installation

implementation("com.notificationsystem:sdk:1.0.0")

Requirements

  • Kotlin 1.9 or later
  • Coroutines and OkHttp runtime dependencies

Quick Start

val client = NotificationClient(
    NotificationClientConfig(apiKey = "ntf_your_api_key_here")
)

val response = client.sendNotification(
    NotificationRequest(
        channels = listOf("email", "sms"),
        content = "Hello from Android",
        targets = listOf("user@example.com", "+1234567890")
    )
)

println(response.id)

Platform Integration API Keys

val integration = client.createIntegration(
    projectId = "project-id",
    integration = PlatformIntegration(
        name = "Production Android App",
        platformType = "mobile",
        sdkLanguage = "android"
    )
)

val key = client.createApiKey(
    integrationId = integration.integration.id!!,
    description = "Android app key"
)

API Methods

sendNotification(request)

Send to email, SMS, Slack, Telegram, WhatsApp, WebSocket, or MQTT channels.

listWorkspaces()

List workspaces available to the authenticated user.

createProject(workspaceId, name, description)

Create a workspace project.

createIntegration(projectId, integration)

Create a platform integration.

createApiKey(integrationId, description)

Create a key scoped to one platform integration.