Firebase screen name is showing not set

点点圈 提交于 2019-12-19 21:44:35

问题


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.


回答1:


put

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

in onResume().




回答2:


Debug it in real-time with logcat to figure out why it's not properly set. My best guess is that you're trying to call setCurrentScreen() while passing an activity that's not in the proper state.

Possible solution: move logging to onResume().



来源:https://stackoverflow.com/questions/50952080/firebase-screen-name-is-showing-not-set

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!