Capture Native iOS and Android Views and Touch events
If your Flutter application contains native content or screens, such as Android or iOS platform views, these will not be captured by default. In order to capture these for session replay, enable native capture in your Flutter init configuration. No initialization is needed in native platform code.
LogRocketInitConfiguration(
appID: '<APP_SLUG>',
// other configurations
iosNativeConfiguration: LogRocketNativeConfiguration(
viewCaptureEnabled: true,
),
androidNativeConfiguration: LogRocketNativeConfiguration(
viewCaptureEnabled: true,
),
)Redaction
Native views can be redacted following standard native redaction configurations for each native platform.
Each redaction configuration can be supplied in your Flutter init configuration. These are configured per platform.
LogRocketInitConfiguration(
appID: '<APP_SLUG>',
// other configurations
iosNativeConfiguration: LogRocketNativeConfiguration(
viewCaptureEnabled: true,
redactionTags: ['sensitive-info', 'credit-card-form'],
allowTags: ['safe-data'],
captureRedactedTouches: false,
),
androidNativeConfiguration: LogRocketNativeConfiguration(
viewCaptureEnabled: true,
redactionTags: ['sensitive-info', 'credit-card-form'],
allowTags: ['safe-data'],
captureRedactedTouches: false,
),
)
