Integrate ConnectHub SDKs
Add powerful social features to your application in minutes. Our SDKs provide seamless access to feeds, authentication, media sharing, and real-time interactions across all major platforms.
Available SDKs
iOS SDK
Swift & Objective-C support. Build native social experiences for iPhone and iPad.
v2.4.1Android SDK
Kotlin & Java support. Jetpack Compose ready with Material Design components.
v2.4.0Web SDK
Vanilla JS, TypeScript, and browser extensions. Embed feeds and login buttons.
v2.3.5React Native
Cross-platform mobile development with pre-built UI components and hooks.
v1.8.2Flutter
Dart-based SDK for building beautiful native interfaces for mobile, web, and desktop.
v1.5.0Quick Start
Install the SDK and initialize the client in three simple steps.
1. Installation
npm install @connecthub/sdk
pod install ConnectHub
implementation 'com.connecthub:sdk-android:2.4.0'
2. Initialize Client
import { ConnectHub } from '@connecthub/sdk'; // Initialize with your API credentials const client = new ConnectHub({ appId: 'app_8x2k9s...', apiKey: 'ch_live_sk_...', environment: 'production' }); // Ready to use! console.log('ConnectHub initialized');
import ConnectHub let config = CHConfig( appId: "app_8x2k9s...", apiKey: "ch_live_sk_..." ) CHClient.initialize(with: config) { error in guard error == nil else { return } print("ConnectHub initialized") }
3. Load a Feed
Fetch and display a personalized feed with just a few lines of code.
async function loadFeed() { try { const feed = await client.feeds.get('user_123', { type: 'timeline', limit: 20 }); console.log(`Loaded ${feed.posts.length} posts`); renderFeed(feed.posts); } catch (err) { console.error('Failed to load feed:', err); } }
SDK Capabilities
| Feature | iOS | Android | Web | React Native | Flutter |
|---|---|---|---|---|---|
| OAuth Login | â | â | â | â | â |
| Smart Feed | â | â | â | â | â |
| Live Streaming | â | â | â | â | â ī¸ Beta |
| Media Upload | â | â | â | â | â |
| Real-time Events | â | â | â | â | â |
| Offline Cache | â | â | â ī¸ Limited | â | â |
| Analytics | â | â | â | â | â |
Authentication Flow
All SDKs support ConnectHub's unified authentication protocol. You can use native login modals or integrate your own UI.
const { user, login, logout, isAuthenticated } = useConnectAuth(); // Trigger native login modal await login({ provider: 'connecthub', scope: 'read:feed write:posts social:profile' }); // Check session if (isAuthenticated) { console.log(`Welcome back, ${user.name}!`); }
Supported Providers
- ConnectHub OAuth: Native social login with your ConnectHub account.
- Server-to-Server: App-to-app authentication for backend integrations.
- Guest Mode: Limited access for unauthenticated users.
Need help integrating?
Our developer support team is available 24/7 to help you get started.