Intunix

Mobile apps

Native SDKs for Android and iOS, and packages for React Native and Flutter that wrap them. Forms look and behave exactly as on the web: the same questions, question pages, conditional questions, icon styles, cadence, targeting, and review requests — configured in the console, not in your app.

New in 1.7.0

Multi-language forms and conversational feedback with Nia work in every mobile SDK from 1.7.0. Set them up in the console. See Languages and Conversational feedback. Older versions show the default language and the traditional form.

Platforms

PlatformPackageRequires
Androidcom.github.intunix:intunix-androidAndroid 7.0 (API 24), Kotlin, Jetpack Compose or Views
iOSgithub.com/intunix/intunix-iosiOS 15, Swift Package Manager
React Native@intunix/react-nativeReact Native 0.76+, not Expo Go
Flutterintunix_flutterFlutter with Swift Package Manager enabled for iOS

Every package exposes the same calls as the web SDK: initialize, identify, reset, track, screen, setContext, showForm, register, and an inline form component. Every call is safe from any thread.

Android

settings.gradle.kts
dependencyResolutionManagement {
    repositories {
        google()
        mavenCentral()
        maven("https://jitpack.io")
    }
}
app/build.gradle.kts
dependencies {
    implementation("com.github.intunix:intunix-android:1.7.3")
}
App.kt
class App : Application() {
    override fun onCreate() {
        super.onCreate()
        Intunix.init(this, "int_pk_xxx", IntunixOptions(register = listOf("nps-q4")))
    }
}

// Anywhere:
Intunix.identify("user-42", mapOf("plan" to "pro"))
Intunix.track("checkout_completed")
Intunix.screen("Checkout")
Intunix.showForm("nps-q4")

Inline: IntunixForm(form = "post-order") in Compose, or IntunixFormView in a View layout.

iOS

In Xcode choose File › Add Package Dependencies… and enter https://github.com/intunix/intunix-ios, or in Package.swift:

swift
.package(url: "https://github.com/intunix/intunix-ios", from: "1.7.3")
MyApp.swift
import Intunix

@main
struct MyApp: App {
    init() {
        Intunix.initialize(apiKey: "int_pk_xxx", options: IntunixOptions(register: ["nps-q4"]))
    }
    var body: some Scene { WindowGroup { ContentView() } }
}

// Anywhere:
Intunix.identify("user-42", traits: ["plan": "pro"])
Intunix.track("checkout_completed")
Intunix.screen("Checkout")
Intunix.showForm("nps-q4")

Inline: IntunixForm(form: "post-order") in SwiftUI, or IntunixFormUIView in UIKit.

React Native

bash
npm install @intunix/react-native
cd ios && pod install
index.js
import { Intunix, IntunixForm } from '@intunix/react-native'

Intunix.initialize('int_pk_xxx', { register: ['nps-q4'] })

Intunix.identify('user-42', { plan: 'pro' })
Intunix.track('checkout_completed')
Intunix.screen('Checkout')
Intunix.showForm('nps-q4')

// Inline — sizes itself to the form
<IntunixForm form="post-order" onFinished={() => setDone(true)} />
Expo

The package contains native code, so it does not run in Expo Go. Use a development build (npx expo run:android / run:ios).

Flutter

bash
flutter pub add intunix_flutter
flutter config --enable-swift-package-manager   # the iOS SDK ships with SwiftPM
lib/main.dart
import 'package:intunix_flutter/intunix_flutter.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  Intunix.initialize('int_pk_xxx', options: const IntunixOptions(register: ['nps-q4']));
  runApp(const MyApp());
}

Intunix.identify('user-42', traits: {'plan': 'pro'});
Intunix.track('checkout_completed');
Intunix.screen('Checkout');
Intunix.showForm('nps-q4');

// Inline — sizes itself to the form
IntunixForm(form: 'post-order', onFinished: () => setState(() => done = true))

Languages and conversational forms

A form with several languages picks one in this order: the respondent's own choice in the form's language switcher, your app's language (locale option, setLocale(), or the per-form locale), the device's language list, then the form's default. setLocale() replaces the remembered choice, so call it when the user picks a language in your own settings. A form reads its locale when it loads, and reset() forgets the remembered choice.

Android

kotlin
Intunix.init(this, "int_pk_xxx", IntunixOptions(locale = "bn"))   // the app's language
Intunix.setLocale("pt-BR")                                        // any time
IntunixForm("nps-q3", locale = "ar")                              // this form only
// Views: IntunixFormView.locale = "ar" before the form loads

iOS

swift
Intunix.initialize(apiKey: "int_pk_xxx", options: IntunixOptions(locale: "bn"))
Intunix.setLocale("pt-BR")
IntunixForm(form: "nps-q3", locale: "ar")
// UIKit: IntunixFormUIView.locale = "ar" before the form loads

React Native

tsx
Intunix.initialize('int_pk_xxx', { locale: 'bn' });
Intunix.setLocale('pt-BR');
<IntunixForm form="nps-q3" locale="ar" />

Flutter

dart
Intunix.initialize('int_pk_xxx', options: const IntunixOptions(locale: 'bn'));
Intunix.setLocale('pt-BR');
IntunixForm(form: 'nps-q3', locale: 'ar');

Conversational and AI-enhanced forms need no code. Set the experience in the console and your existing showForm and inline calls run the chat. If Nia is unreachable the form carries on with its own questions, and a chat resumes after an app restart.

Options

OptionDefaultWhat it does
localedevice languageThe app's language for multi-language forms; setLocale() changes it later
register[]Form ids or slugs whose triggers are live
registerAllfalseLoad every SDK-enabled form instead of only register
screenTriggerDelayMs600Wait before a screen-triggered form shows
flushIntervalMs5000How often events upload
disableEventApifalseKeep events on the device (they still fire triggers)
debugfalseLog to Logcat / the Xcode console
apiHosthttps://api.intunix.comAPI origin
themeautoDark mode override; setTheme() changes it later

Forms follow your app's dark mode on their own. See Dark mode for detection per platform and the code overrides.

What differs from the web

Where a form appears

Display type in the consoleIn apps
ModalCentered dialog over a dimmed screen
Popup, bannerBottom sheet
InlineWherever you place the inline form component; the console's target selector is ignored

Triggers

  • App screen replaces the URL trigger: call screen("Checkout") when a screen appears and forms whose trigger matches (exact, contains, or regex) fire. Targeting rules on URL match the screen name.
  • Event, user-trait, time, and manual triggers work as on the web.
  • Exit intent is web-only and is ignored.

Show on: web, app, or both

Each form has a Show on setting in the console. A form set to Web never shows in apps, and App never shows on websites. The default is both.

Sessions and data

A session ends after 30 minutes in the background. Responses and events use the same endpoints as the web SDK, with channel mobile_sdk and the header x-intunix-sdk: android/<version> or ios/<version>. Events that fail to upload are kept on the device and retried for a day. See Network & privacy.