Requirements
- Flutter 3.0.0 - 4.0.0
- Dart 3.0.0+
- iOS 9.0+ / Android 4.4 (API 19)+
Installation
Add the social.plus SDK to yourpubspec.yaml:
pubspec.yaml via pub.dev is the only supported installation method for the social.plus Flutter SDK. Find the latest version at pub.dev/packages/amity_sdk. If you need to pin to a specific version or git ref, use Dart’s standard git-dependency syntax in pubspec.yaml — no separate alternative install path is required.Project Configuration
Before you initialize the Flutter SDK, make sure the generated iOS and Android projects meet the native platform requirements. These native settings usually only need to be configured once per app, but they must be in place before you run the SDK on a device or simulator.After changing either native project configuration, rerun
flutter pub get and rebuild the app so the generated platform projects pick up the updated settings.iOS Configuration
Set the minimum iOS deployment target inios/Podfile. The Flutter SDK example project uses a Podfile with the standard Flutter target setup, and you should set the platform version explicitly before running pod install.
Podfile
The Flutter SDK example Podfile includes the standard Runner target and leaves the
platform line commented as 12.0; set it explicitly in your app so CocoaPods resolves the SDK against the correct deployment target.Android Configuration
Keep your Android minimum SDK at Android 4.4 / API 19 or higher. The Flutter SDK example app inherits Flutter’s default throughflutter.minSdkVersion, so set an explicit value if your project overrides that default.
build.gradle
The Flutter SDK example app uses
minSdkVersion flutter.minSdkVersion in example/android/app/build.gradle; if you override it in your own app, keep the value at 19 or above to match the SDK requirements.Initialize the SDK
Create the client with your API key so the SDK is ready for authentication.This creates the SDK client but does not yet authenticate a user. See Authentication for the next step.
Next Steps
Authentication Guide
Learn about session management and secure authentication flows
Chat Features
Start building chat and messaging features
Social Features
Add posts, feeds, and social interactions
Video Streaming
Implement live video and streaming features
Troubleshooting
Installation Issues
Installation Issues
Package not found: Make sure you’ve added the correct package name to pubspec.yamlVersion conflicts: Use
flutter pub deps to check for dependency conflictsBuild errors: Run flutter clean and flutter pub get to refresh dependenciesRuntime Issues
Runtime Issues
SDK not initialized: Make sure you call
AmityCoreClient.setup() before using any SDK featuresAuthentication failures: Verify your API key and region settingsSession state issues: Ensure you’re properly listening to session state changesPlatform-Specific Issues
Platform-Specific Issues
iOS build fails: Ensure minimum iOS version is set to 9.0+Android build fails: Check that minimum SDK is set to 19+