Warning This SDK is currently in alpha. APIs may change and there will be breaking changes before the stable release.
This is Amplitude's Session Replay SDK for Flutter.
Add the package to your pubspec.yaml:
dependencies:
amplitude_session_replay: ^0.0.1-alpha.1Then run:
flutter pub getWrap your app with SessionReplayWidget:
import 'package:amplitude_session_replay/amplitude_session_replay.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
final config = SessionReplayConfig(
apiKey: 'YOUR_AMPLITUDE_API_KEY',
deviceId: 'your-device-id',
sessionId: 123456789, // from your analytics SDK
);
runApp(SessionReplayWidget(config: config, app: const MyApp()));
}If you have any problems or issues over our SDK, feel free to create a GitHub issue or submit a request on Amplitude Help.