Ready to add powerful social features to your app? This guide will get you up and running with social.plus SDK quickly, whether you’re building for mobile, web, or cross-platform.
New to social.plus SDK? Check out our SDK Overview to learn about all available features and choose what’s right for your project.
1

Choose Your Platform

Select the SDK that matches your development environment:

Web & ReactNative

2

Get Your API Key

  1. Visit the social.plus Console
  2. Navigate to SettingsSecurity
  3. Copy your API key from the Keys section
Keep your API key secure. Never expose it in client-side code in production.
3

Initialize the SDK

After installation, initialize the SDK with your API key:
let client = try! AmityClient(apiKey: "your-api-key", region: .SG)
4

Authenticate Users

Log in users to access social.plus features:
Task { @MainActor in
    do {
        try await client.login(
            userId: "<user-id>",
            displayName: "<(optional)-display-name>",
            authToken: "<(optional)-auth-token>",
            sessionHandler: MySessionHandler()
        )
        print("login success")
    } catch {
        print("login failed \(error)")
    }
}

What’s Next?

Once you have the SDK installed and initialized, you can start building:

Platform Requirements

Make sure your development environment meets these minimum requirements:
  • Xcode 14.3+
  • iOS 13.0+
  • Swift 5.0+

Need Help?