Activity history

Shake diligently tracks user's interaction with your app, their network traffic and system events, and automatically attaches all of those to every bug report.

Introduction

You can inspect all events that lead to a bug being reported. A link to Activity history is located in the top right corner:

Activity screen

Setting up

User actions

User actions tracking is currently not supported.

Network requests

Shake provides you a wrapper for dart:io HttpClient class which allows you to track network requests. Additionally, if you are using dio or http packages for sending network requsts, you can use one our extensions.

dart:io

Use ShakeHttpClient wrapper class to perform network requests. All network requests sent with ShakeHttpClient will be visible on the dashboard.

lib/main.dart
import 'package:shake_flutter/network/shake_http_client.dart';
_sendNetworkRequest() async {
ShakeHttpClient shakeHttpClient = ShakeHttpClient();
await shakeHttpClient.getUrl(Uri.parse("http://www.shakebugs.com"));
}
note

The latest version of Shake dart:io HttpClient wrapper will log network request details without request and response body.

dio

Install shake_dio_interceptor extension for dio package:

pubspec.yaml
dependencies:
shake_dio_interceptor: ^10.0.0

Add ShakeDioInterceptor to your Dio instance:

lib/main.dart
import 'package:shake_dio_interceptor/shake_dio_interceptor.dart';
_sendNetworkRequest() async {
Dio dio = Dio();
dio.interceptors.add(ShakeDioInterceptor());
await dio.get('https://www.shakebugs.com');
}

All network requests sent with defined Dio instance will be visible on the dashboard.

http

Install shake_http_client extension for http package:

pubspec.yaml
dependencies:
shake_http_client: ^10.0.0

Use ShakeHttpClient to send network requests:

lib/main.dart
import 'package:shake_http_client/shake_http_client.dart';
_sendNetworkRequest() async {
ShakeHttpClient shakeHttpClient = ShakeHttpClient();
await shakeHttpClient.get('https://www.shakebugs.com');
}

All network requests sent with ShakeHttpClient instance will be visible on the dashboard.

System events

System events are tracked automatically and require no additional setup.

Limitations

In a Free workspace, you can see up to 20 events that lead to every bug. If you need to dive really deep to find causes of the weirdest bugs upgrade to Premium. In a Premium workspace you can browse the entire activity history.

Enabling and disabling

Activity history is enabled by default, however, you can use the method below to disable it:

lib/main.dart
import 'package:shake_flutter/shake_flutter.dart';
_disableActivityHistory() {
Shake.setEnableActivityHistory(false);
}