Bugly.addPageAction('pageAction');
BuglyNavigatorObserver。class _MyAppState extends State<MyApp> with WidgetsBindingObserver {@overridevoid initState() {super.initState();}@overrideWidget build(BuildContext context) {return MaterialApp(home: Scaffold(appBar: AppBar(title: const Text('APM Example'),),body: Center(child: MyHome(),),),// 添加 BuglyNavigatorObservernavigatorObservers: [BuglyNavigatorObserver()],routes: {'MainPage': (context) => MainPage(),'FirstPage': (context) => FirstPage(),'SecondPage': (context) => SecondPage(),},);}}
BuglyNavigatorObserver 设置到混合栈框架中,如下所示。runApp(MaterialApp(home: TRouteContainer(navigatorObservers: BuglyNavigatorObserver(),),));
Intent intent = new Intent(MainActivity.this, TestFlutterActivity.class);MainActivity.this.startActivity(intent);FlutterLaunchMonitor.onEnterFlutter();
[[TFlutterLaunchMonitor sharedInstance] onEnterFlutter];
Bugly#setUserId 进行设置。Bugly.setUserId('your_user_id');
BuglyOptions.logger = MyLogger
文档反馈