Skip to content

Commit

Permalink
fix(android): fix screen logging
Browse files Browse the repository at this point in the history
  • Loading branch information
hansemannn committed Jul 8, 2022
1 parent 83d3a27 commit 897b168
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,12 @@ public void setScreenNameAndScreenClass(KrollDict parameters)
public void run()
{
Bundle bundle = new Bundle(1);
bundle.putString(screenName, screenClass);

bundle.putString(FirebaseAnalytics.Param.SCREEN_NAME, screenName);
if (screenClass != null) {
bundle.putString(FirebaseAnalytics.Param.SCREEN_CLASS, screenClass);
}

instance.logEvent(FirebaseAnalytics.Event.SCREEN_VIEW, bundle);
}
});
Expand Down

0 comments on commit 897b168

Please sign in to comment.