Due to limitations of the Flutter platform, the screen hiding feature from the Wingify dashboard's 'Exclude elements/sections from screen recording' section may not work for certain frames.
To address this, we recommend using the pause and resume feature of our SDK. When you need to hide a screen, pause the recording before the screen appears. Similarly, to unhide a screen, resume the recording after the screen is dismissed.
The mobile SDK will not record events or take screenshots while it is paused.
For web recordings, event tracking remains active continuously; only content visibility is subject to pausing.
To pause session recording before navigating to a screen you want to hide, use the below code.
import 'package:vwo_insights_flutter_sdk/vwo_insights_flutter_sdk.dart';
if (chosenScreen == "PersonalInformationScreen") {
VwoFlutter.pauseRecording();
//Show screen which will be hidden in recording
}To resume session recording after leaving the screen you wanted to hide, use the below code.
import 'package:vwo_insights_flutter_sdk/vwo_insights_flutter_sdk.dart';
void didPop(Route<dynamic> route, Route<dynamic>? previousRoute) {
if (route.settings.name?.contains("/housing") == true) {
VwoFlutter.resumeRecording();
}
super.didPop(route, previousRoute);
}