Bugly.addPageAction('pageAction');
BuglyNavigatorObserver in the app.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(),),),// Adds BuglyNavigatorObserver.navigatorObservers: [BuglyNavigatorObserver()],routes: {'MainPage': (context) => MainPage(),'FirstPage': (context) => FirstPage(),'SecondPage': (context) => SecondPage(),},);}}
BuglyNavigatorObserver to the hybrid stack framework, as shown below.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 to set it.Bugly.setUserId('your_user_id');
BuglyOptions.logger = MyLogger
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback