Installation

Install the InfluTo SDK in your mobile app

React Native (Available Now)

1. Install Package

npm install @influto/react-native-sdk@latest
# or
yarn add @influto/react-native-sdk

# Install peer dependencies
npm install @react-native-async-storage/async-storage

2. iOS Setup (if using iOS)

cd ios && pod install && cd ..

3. Verify Installation

import InfluTo from '@influto/react-native-sdk';

// Should not throw error
console.log('InfluTo SDK loaded:', InfluTo);

✓ Installation Complete

Continue to Quick Start Guide to initialize the SDK.


Flutter

Available now (v1.0.0) on pub.dev. Add it to your project:

flutter pub add influto

Usage

import 'package:influto/influto.dart';

// Initialize
await InfluTo.initialize(
  apiKey: 'it_abc123...',
  debug: kDebugMode,
);

// Check attribution
final attribution = await InfluTo.checkAttribution();

if (attribution.attributed) {
  print('User from: ${attribution.referralCode}');
}

Native iOS - StoreKit

Available now (v1.0.0). For apps using native StoreKit 2 without RevenueCat. Install via Swift Package Manager: https://github.com/influto/influto-ios (from "1.0.0").

Integration

import InfluToSDK

// Initialize
InfluTo.shared.initialize(apiKey: "it_abc123...")

// Check attribution
let attribution = await InfluTo.shared.checkAttribution()

if attribution.attributed {
    print("User from: (attribution.referralCode)")

    // Set in StoreKit transaction
    // Details TBD based on StoreKit 2 API
}

Native Android - Play Billing

Available now (v1.0.0) on Maven Central. For apps using Google Play Billing Library directly. Add to.influ:android-sdk:1.0.0 to your Gradle dependencies.

Integration

import com.influto.sdk.InfluTo;

// Initialize
InfluTo.initialize(context, "it_abc123...");

// Check attribution
Attribution attribution = InfluTo.checkAttribution();

if (attribution.isAttributed()) {
    Log.d("InfluTo", "User from: " + attribution.getReferralCode());

    // Include in purchase metadata
    // Details TBD based on Play Billing API
}

Requirements

React Native

  • React Native: 0.60.0 or higher
  • iOS: 13.0+
  • Android: API 21+ (Android 5.0)
  • RevenueCat: Any version
  • Expo: Supported (managed & bare workflows)

Flutter

  • Flutter: 3.0.0+
  • Dart: 2.17.0+

Package Sizes

PackageCompressedUnpacked
@influto/react-native-sdk20.7 KB92.3 KB
@influto/react-native-sdk/ui~5 KB (additional)~16 KB (additional)

Next Steps

After installation, proceed to the Quick Start Guide to initialize the SDK and start tracking attributions.