SDK overview
Record sessions in your Flutter, Android, iOS or React Native app, with private content masked on the device.
The Tugboat SDK records sessions in your mobile app: masked screenshots, taps, scrolls, screen changes and, if you set it up, network calls and events from your code. Tugboat uses these sessions for session replays and findings.
Platforms
| Platform | Package | Version | Requirements |
|---|---|---|---|
| Flutter | tugboat on pub.dev | 0.12.15 | Flutter 3.35+, Dart 3.9.2+, Android 5.0 (API 21)+, iOS 15+ |
| Android | com.gettugboat.sdk:tugboat-android on Maven Central | 0.1.2 | Android 7.0 (API 24)+; screenshots need Android 8.0 (API 26)+ |
| iOS | Tugboat on CocoaPods | 0.1.3 | iOS 15+, Swift 5.9 |
| React Native | @tugboat-ai/react-native on npm | 0.0.11 | React Native 0.88+ with the New Architecture, Android 7.0 (API 24)+, iOS 15.1+ |
The SDK records on Android and iOS. In Flutter apps that also run on web or desktop, guard Tugboat calls so they only run on Android and iOS. In React Native, the SDK does nothing on other platforms.
Before you start
You need:
- An SDK key for each app. Tugboat gives you one key per app, and each platform is its own app, so your iOS and Android apps have different keys. The key ships inside your app, so it isn't a secret: it only lets your app send sessions to Tugboat.
- The address to send sessions to:
https://collector.gettugboat.com. The Flutter SDK uses it by default; on Android, iOS and React Native you pass it when you start the SDK.
Install the SDK
You can add the SDK yourself, or have a coding agent do it for you.
How every platform works
Each platform follows the same steps:
- Install the package.
- Start the SDK with your SDK key when your app launches.
- Turn capture on. The SDK records nothing until your app enables it.
- Name your screens, so sessions line up with your Manifest.
- Optionally, identify users, capture network calls and send events from your code.
- Mark sensitive content, on top of the masking the SDK does by default.
- Verify that sessions reach Tugboat.
Privacy
Screenshots are masked on the device before they're sent, and the SDK never records what people type. Read Privacy and masking and What the SDK captures before you ship.
License
The Tugboat SDKs are licensed under the GNU Affero General Public License v3.0 (AGPL-3.0). The source is on GitHub, and new versions are listed on its releases page.
Updated about 3 hours ago