How to track android fragments using firebase analytics
In my android application, I have an Activity that has 3 or 4 fragments that can be attached in sequence based on some user or server events. I would like to track all these fragments as screens in firebase. So ideally, if possible, is there an API i can invoke in the onCreate of the fragments, and tell firebase that user is currently in fragment1, fragment2 or fragment3? There is a special method to set a current screen - setCurrentScreen I used it as follows mFirebaseAnalytics.setCurrentScreen(this, fragment.getClass().getSimpleName(), fragment.getClass().getSimpleName()); Once the method is