在 FireBase Analytics 中,我们无法设置在 Dashboard 中显示的屏幕名称。我添加了 logevent 如下:

In FireBase Analytics, we can't set the screen name displayed in Dashboard. I have added the logevent as follows:

[
 FIRAnalytics logEventWithName:@"FirstScreen" 
 parameters:@{ 
  @"screen_name": @"First",
  @"screen_class": @"First"
  }
];

ViewDidAppear中添加[FIRAnalytics setScreenName:@"First" screenClass:@"First"]然后在info.plist中添加firebaseautomaticscreenreportingenabled作为Boolean设置为NO