Firebase screen name is showing not set

Akshay picture Akshay · Jun 20, 2018 · Viewed 9k times · Source

I have created a project in Google Firebase Analytics and I am able to log screen names in the console. But for one screen screen_view is not recorded and it is showing as not set in the screen view list. I have used a default function for logging screen view event (i.e. setCurrentScreen()).

I am using Firebase:16.0.0 version. Can anyone please guide me for this.

Firebase Issue

Answer

Nitish Kumar picture Nitish Kumar · Nov 29, 2018

put

analytics.setCurrentScreen(this, "Screen Name", this.getClass().getSimpleName());

in onResume().