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.
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
| Platform | Package | Requires |
|---|---|---|
| Android | com.github.intunix:intunix-android | Android 7.0 (API 24), Kotlin, Jetpack Compose or Views |
| iOS | github.com/intunix/intunix-ios | iOS 15, Swift Package Manager |
| React Native | @intunix/react-native | React Native 0.76+, not Expo Go |
| Flutter | intunix_flutter | Flutter 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
dependencyResolutionManagement {
repositories {
google()
mavenCentral()
maven("https://jitpack.io")
}
}dependencies {
implementation("com.github.intunix:intunix-android:1.7.3")
}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:
.package(url: "https://github.com/intunix/intunix-ios", from: "1.7.3")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
npm install @intunix/react-native
cd ios && pod installimport { 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)} />The package contains native code, so it does not run in Expo Go. Use a development build (npx expo run:android / run:ios).
Flutter
flutter pub add intunix_flutter
flutter config --enable-swift-package-manager # the iOS SDK ships with SwiftPMimport '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
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 loadsiOS
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 loadsReact Native
Intunix.initialize('int_pk_xxx', { locale: 'bn' });
Intunix.setLocale('pt-BR');
<IntunixForm form="nps-q3" locale="ar" />Flutter
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
| Option | Default | What it does |
|---|---|---|
locale | device language | The app's language for multi-language forms; setLocale() changes it later |
register | [] | Form ids or slugs whose triggers are live |
registerAll | false | Load every SDK-enabled form instead of only register |
screenTriggerDelayMs | 600 | Wait before a screen-triggered form shows |
flushIntervalMs | 5000 | How often events upload |
disableEventApi | false | Keep events on the device (they still fire triggers) |
debug | false | Log to Logcat / the Xcode console |
apiHost | https://api.intunix.com | API origin |
theme | auto | Dark 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 console | In apps |
|---|---|
| Modal | Centered dialog over a dimmed screen |
| Popup, banner | Bottom sheet |
| Inline | Wherever 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.