SDK Documentation
Complete API reference and integration guides for the RewardingHub Offerwall SDK.
Supported Platforms
Android
Gradle dependency. Min SDK 21+. Kotlin & Java.
iOS
CocoaPods & SPM. iOS 13+. Swift & ObjC.
React Native
npm package. TypeScript definitions included.
Unity
UPM or .unitypackage. C# API. Unity 2020.3+.
Flutter
pub.dev package. Dart 3.0+.
REST API
Server-to-server integration. Any language.
Core Concepts
Initialization
Call init with your App ID and API Key from your dashboard.
// Android (Kotlin)
RewardingHub.init(context, "YOUR_APP_ID", "YOUR_API_KEY")
// iOS (Swift)
RewardingHub.initialize(appId: "YOUR_APP_ID", apiKey: "YOUR_API_KEY")
// React Native
import { RewardingHub } from 'rewardinghub-sdk';
RewardingHub.init('YOUR_APP_ID', 'YOUR_API_KEY');Showing the Offerwall
// Android
RewardingHub.showOfferwall(activity, userId)
// iOS
RewardingHub.showOfferwall(from: viewController, userId: userId)
// React Native
RewardingHub.showOfferwall(userId);Reward Callbacks
Handle client-side via callbacks or server-side via postbacks (recommended).
Best Practices
- Always use server-to-server postbacks in production
- Set a unique user ID per user
- Place the offerwall where users look for rewards
- Read our best practices guide
Frequently Asked Questions
Which SDK version should I use?
Always use the latest version. We maintain backward compatibility.
Can I customize the offerwall UI?
Yes. The SDK supports theming for colors, fonts, and layout.
Is the SDK open source?
The client libraries are open source on GitHub.
Ready to Get Started?
Join 500+ publishers using RewardingHub to grow their games.