Sections
Theme

SDK overview

Easily integrate with the Invitebase SDK for web, iOS, Android, React Native, or Flutter

Invitebase offers native SDKs across all major mobile and web platforms. Integrate the native SDKs with just a few lines of code to begin growing your app with referrals in just a few hours.

If you want the fastest path to a working referral, start by integrating your app instead.

All five SDKs ship as version 1.0 on November 15, 2026. Prebuilt UI components and push notifications are coming soon and are outside the November 15 release. Build custom UI with the SDK methods and reactive reads.

Anonymous-first identity

The SDK works fully with no identify() call. At configure() it generates a stable anonymous ID, persisted per platform (Keychain on iOS, EncryptedSharedPreferences on Android, localStorage on web). Everything — event tracking, referral attribution, qualification-gate progress — binds to that anonymous ID.

This is structural, not a convenience: a referee's most important moments (install, first open, attribution resolution, early qualifying actions) usually happen before signup. If tracking started at identify(), the front of every funnel would be lost.

When the user signs up, call identify(user). The anonymous history — events, attribution, gate progress — merges onto the identified user server-side, and events ingested under the anonymous ID count toward qualification after the merge. The merge is idempotent and handles every ordering: attribute → events → identify, identify → more events, identifying into an existing user with prior history, and two devices identifying as the same user.

Read more in Users & identity.

Reactive change observers

Apps should react the moment referral state changes — confetti when a reward lands, a progress strip that updates live as a referee completes gates — without writing polling code. Every SDK exposes an observer surface in its platform's native idiom:

PlatformIdiom
Web/JSEvent emitter — invitebase.on('rewardsChanged', …)
iOSInvitebaseDelegate, plus AsyncSequence and Combine publishers
AndroidListener interface, plus Kotlin Flow
React NativeHooks — components re-render automatically
FlutterStreams — widgets rebuild automatically

Changes reach the device via smart refresh: the SDK re-fetches on app foreground, after SDK-initiated actions, and on a modest interval while referral surfaces are visible. There is no persistent connection to manage.

Platform support

WebiOSAndroidReact NativeFlutter
Package@invitebase/js (npm)InvitebaseSDK (SPM)com.invitebase:sdk (Maven Central)@invitebase/react-native (npm)invitebase_flutter (pub.dev)
Core surfaceSupportedSupportedSupportedSupportedSupported
Deferred attributionURL params + first-party cookieClipboard handoffPlay Install ReferrerNative (per OS)Native (per OS)
Already-installed deep links—Universal LinksApp LinksBothBoth
ObserversEvent emitterDelegate / async / CombineListener / FlowHooksStreams
Drop-in UI componentsComing soonComing soonComing soonComing soonComing soon
Push notificationsComing soonComing soonComing soonComing soonComing soon

Drop-in UI components

Coming soon on all five platforms: invite screens, referrer status views, code-entry screens, referee welcome views, and campaign banners. These components are outside the November 15 release. Build custom UI using referral links, campaign information, progress, rewards, and observers.

What's next

On this page