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 versions
iOSSwift package or pod ResponslySDKiOS 15
AndroidGradle dependency com.responsly:sdkminSdk 23 (Android 6.0)
React Nativenpm package @responsly/react-native-sdkReact Native 0.75, iOS 15, Android minSdk 23
FlutterDart package responsly_sdkFlutter 3.24, Dart 3.5, iOS 15, Android minSdk 23
UnityUnity package com.responsly.sdkUnity 2022.3 LTS, iOS 15, Android minSdk 23

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

The Mobile SDK is switched on per team, and its packages are provided on request. They are not listed in public package registries.

To start, 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 two things back:

  • the Mobile app tab in your forms, with the team’s SDK key,
  • access to the packages for your platforms, with the details of where to install them from.

The installation pages show the steps for each platform once you have that access.

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. You need it only when you show a survey from code with showSurvey. Surveys that appear through triggers need no ID in the app.

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.