Firebase Analytics-Manual Screen Views are not getting tracked in correct order for Xamarin.iOS

Hello,
I am integrating firebase analytics in Xamarin.Forms project.Screen views are not getting tracked in correct order for iOS project.I am using below line of code in respective file's on appearing method-

LoginPage.xaml- Analytics.SetScreenNameAndClass("LoginScreen", null);
Dashboard.xaml- Analytics.SetScreenNameAndClass("DashboardScreen", null);
Employee.xaml- Analytics.SetScreenNameAndClass("ViewEmployeeScreen", null);

The above line of code is written in xamarin ios project and I am using dependency service to call it from PCL of xamarin forms.
For eg user flow is Login->Dashboard->ViewEmployee
In DebugView
Expected scenario shoud be : LoginScreen-> DashboardScreen(screen_view1) & DashboardScreen-> ViewEmployeeScreen(screen_view2)

Result I am getting: LoginScreen-> DashboardScreen(screen_view1), DashboardScreen->LoginScreen(screen_view2),LoginScreen->EmployeeScreen(screen_view3) . (Which is incorrect It should not go to login screen again)

Packages installed:
Xamarin.Firebase.iOS.Analytics(6.0.4)
Xamarin.Firebase.iOS.Core(6.1.0)
Xamarin.Firebase.iOS.Crashlytics(3.14.0)
Xamarin.Firebase.iOS.InstanceID(3.4.0)
Can anyone please let me know where I am going wrong?

Thanks in advance!

Sign In or Register to comment.