iOS SDK
Swift Package client for native iOS and macOS applications.
Installation
.package(url: "https://github.com/notification-system/sdk-ios", from: "1.0.0")Requirements
- iOS 13 or later
- Swift 5.9 or later
Quick Start
import NotificationSystemSDK
let client = NotificationClient(apiKey: "ntf_your_api_key_here")
let response = try await client.sendNotification(
NotificationRequest(
channels: ["email", "sms"],
content: "Hello from iOS",
targets: ["user@example.com", "+1234567890"]
)
)
print(response.id)Platform Integration API Keys
let integration = try await client.createIntegration(
projectId: "project-id",
integration: PlatformIntegration(
name: "Production iOS App",
platformType: "mobile",
sdkLanguage: "ios"
)
)
let key = try await client.createApiKey(
integrationId: integration.integration.id!,
description: "iOS 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.