Skip to content

Mobile SDK

The Mobile SDK shows Responsly surveys inside your app: after an event, on a screen, at app launch, or when your code asks for one.

An NPS survey shown in a bottom sheet over an order confirmation screen of an iOS app
  1. In Responsly, you turn on the Mobile app channel for a form and set who should see it and when.
  2. The SDK downloads that configuration when the app starts and caches it for about 10 minutes.
  3. Your app tells the SDK who the user is (identify), what they do (track) and where they are (screen).
  4. The SDK checks the rules on the device. When a survey matches, it opens in a bottom sheet, a dialog or full screen.
  5. The response is saved in Responsly. The user ID and attributes fill the form’s hidden fields with the same names, and your code gets callbacks.

The survey shown in the app is the same survey respondents see on the web. All question types, logic, translations and themes work, and edits go live without an app release. It is displayed in a native container that hosts a web view, so the device needs a network connection when the survey is shown.

PlatformPackageMinimum versionsSource
iOSSwift package or pod ResponslySDKiOS 15GitHub
AndroidGradle dependency com.responsly:sdkminSdk 23 (Android 6.0)GitHub
React Nativenpm package @responsly/react-native-sdkReact Native 0.75, iOS 15, Android minSdk 23GitHub
FlutterDart package responsly_sdkFlutter 3.24, Dart 3.5, iOS 15, Android minSdk 23GitHub
UnityUnity package com.responsly.sdkUnity 2022.3 LTS, iOS 15, Android minSdk 23GitHub

Current version: 1.2.3 on every platform. The React Native, Flutter and Unity packages wrap the native iOS and Android SDKs, so behaviour is the same everywhere.

All five SDKs are open source under the MIT license, in the Responsly organization on GitHub. Each repository has the source code, the release tags and the changelog.

The packages are public: install them from GitHub as each installation page shows. The Mobile app channel in Responsly is switched on per team. To have it switched on, write to contact@responsly.com with:

  • the name of your Responsly team,
  • the platforms you build for (iOS, Android, React Native, Flutter, Unity).

You get the Mobile app tab in your forms, with the team’s SDK key.

A string that starts with rsk_. There is one per team. It identifies your team when the SDK downloads its configuration. It is public: ship it in the app, commit it, use the same key for iOS and Android.

Identifies one form in the app. You need it only when you show a survey from code with showSurvey. Surveys that appear through triggers need no ID in the app.

A form with several configurations has a Survey ID for each of them.

Open the form in Responsly, go to Share and select the Mobile app tab. The tab holds the channel switch, all targeting settings, the team’s SDK key, the form’s Survey ID, and counts for the last 30 days (shown, completed, closed).

There are two ways to get a survey on screen.

TriggersshowSurvey
Who decides whenYou, in the Mobile app tabYour code
What starts itAn event (track), a screen (screen) or app launchA call with the Survey ID
Change without an app releaseYesNo
Typical useNPS after the third purchase, feedback on a screenA “Give feedback” button

A form with no triggers is shown only by showSurvey. Audience, frequency and schedule rules apply to both, unless you call showSurvey with force. See Targeting.

The SDK keeps the user’s attributes, event counts and display history on the device and decides there. Events and attributes are not uploaded for targeting. The server receives only anonymous counts of surveys shown, closed and completed. See Privacy & data.