Skip to content

Native and Flutter Hybrid Development

If your project is developed natively and some pages or business processes are implemented with Flutter, the SDK installation and initialization configuration methods are as follows:

  • The installation method remains unchanged. See App Access
  • For native initialization, see iOS SDK Initialization Configuration and Android SDK Initialization Configuration
  • The configuration on the Flutter side is as follows:

  • View, Resource, and Error use the same configuration method as pure Flutter projects

  • If you need Flutter Session Replay, install and initialize the standalone package. Starting from Session Replay SDK 0.1.1, you can pause or resume Flutter recording when switching between Flutter and native pages through FTSessionReplayManager().setCaptureActive(...). For details, see Pause and Resume Recording
  • Flutter Resource and Trace automatic collection uses the following configuration
// Set traceHeader, supported in 0.5.3-pre.2
FTHttpOverrideConfig.global.traceHeader = true;

// Enable Resource data collection, supported in 0.5.3-pre.2
FTHttpOverrideConfig.global.traceResource = true;