What the SDK captures
Exactly what the Tugboat SDK records in your app, on every platform.
The Tugboat SDK records what people see and do in your app, so Tugboat can replay sessions and find where people struggle. This page lists what it records, what it never records, and what your app controls. Privacy and masking explains how private content is hidden in screenshots.
The SDK is available for Flutter, Android, iOS and React Native. Where platforms differ, this page says so.
Nothing is recorded until your app turns it onCapture is off by default on every platform. The SDK records nothing until your app enables it.
Screenshots
The SDK takes screenshots of your app as it's used: when the screen changes, shortly after a tap, and when a scroll ends. Screenshots are masked on the device before they're saved or sent, so text and images are hidden by default. See Privacy and masking.
Interactions
- Taps, swipes, scrolls, pans and zooms, with where on the screen they happened.
- What was tapped: its role (such as a button) and its position in the screen's layout, plus names your developers gave it, such as widget type names on Flutter, resource IDs on Android, tags set with the SDK, or
testIDvalues on React Native. Labels on controls are only sent as a one-way hash, never as readable text. - Scroll positions: where a scroll started and ended.
- Screen changes: the name or route of each screen a person visits.
- App lifecycle: when the app moves to the background or foreground, and when the language changes.
Your app can also turn on optional events, such as when a text field gains focus (whether a text field is focused, never what's typed) and presses of hardware buttons like back or volume. These are off unless your app enables them.
Network calls
When your app sets it up, the SDK records a summary of each network request:
- the method (such as
GETorPOST) and the path, - the status code, and whether the request succeeded, failed or was canceled,
- how long it took and how many attempts it made, and
- for error responses (status 400 or above), the start of the response body, up to 4 KB. Flutter apps using the
httppackage never send error bodies.
On Flutter, Android and iOS, network capture works through the request libraries your app uses (such as Dio and http on Flutter, OkHttp on Android, and URLSession on iOS) or through calls your app makes to the SDK. On React Native, fetch and XMLHttpRequest requests are recorded automatically.
See Never captured for what's left out of each request, and Paths in network calls for how paths are recorded.
Events from your app
Your developers can send named events from your code, such as "Started checkout", with parameters. Parameters are sent as your app provides them, unless your app limits them to names only, an allow-list, or its own transformation. React Native doesn't support custom events.
Device and app details
Each session records:
- the device model, operating system and version, and screen size,
- the app's name, version and build number,
- the language and region, and the time zone, and
- an installation ID: a random ID the SDK creates the first time the app runs, used to tell installs apart.
On iPhone and iPad, every Tugboat SDK (including Flutter and React Native) also records the device's vendor identifier (an ID Apple gives your apps on that device), and starts the installation ID from it. On Android devices, the device ID field holds the operating system's build label, which many devices share.
On Flutter, sessions also include the battery level, free storage, network type (such as Wi-Fi or cellular) and, on Android, the device's memory. The native Android, iOS and React Native SDKs don't record these.
Who the user is
The SDK doesn't know who a person is unless your app tells it. Your app can set a user ID and traits (such as a plan or a sign-up date). Without them, sessions are linked only by the installation ID and, on iPhone and iPad, the vendor identifier.
Never captured
- What people type. The SDK never reads the contents of text fields or keystrokes. At most, if your app turns it on, it notes that a text field has focus.
- Readable labels. Text on buttons and controls is only sent as a one-way hash.
- Unmasked screenshots. Masking happens on the device before a screenshot is encoded. If masking fails, the frame isn't sent unmasked. See Privacy and masking.
- Query strings and fragments. A request whose recorded path contains a
?or#is dropped rather than recorded. - Headers. No request or response headers are recorded.
- Request bodies. What your app sends is never recorded.
- Successful response bodies. Only error responses (status 400 or above) can include part of the body.
- Error messages from the network layer, such as connection failures.
- Anything before your app enables capture. Capture is off by default.
What your app controls
Paths in network calls
The SDK records the path of each request, such as /orders/123. It doesn't remove IDs from paths on its own:
- On Flutter, Android and iOS, your app supplies the path that's recorded for each request, so it can replace IDs with a pattern, such as
/orders/{id}. - On React Native, the request's path is recorded as it is, including any IDs in it.
Error response bodies
For responses with status 400 or above, the SDK keeps up to 4 KB of the body by default, because error messages help explain what went wrong.
- On Flutter with Dio, your app can choose which URLs' error bodies to keep or leave out.
- On Flutter with the
httppackage, error bodies are never recorded. - On Android, iOS and React Native, every error body is kept, up to 4 KB.
Events from your app
Named events your app sends include their parameters as your app provides them. Your app can limit them to names only, an allow-list of parameters, or its own transformation. Custom events aren't available on React Native.
Storage on the device
The Flutter SDK keeps recordings in memory until they're sent; the only thing it writes to disk is the installation ID. The native Android, iOS and React Native SDKs can keep unsent recordings on disk so they survive the app closing, but only if your app turns that on. It's off by default. Stored recordings contain masked screenshots, never unmasked ones.
Updated about 22 hours ago