Firebase analytics not give Custom events details instead (total) 0 items

Viewed 2472

I implemented firebase in the application. I created an event and it was shown on logs. I have also Registered event parameters on the Event screen, there it was showing (total) 0 items.

Code:

Bundle bundle = new Bundle();   
bundle.putString(FirebaseAnalytics.Param.CONTENT_TYPE,"NetworkShare01");    
bundle.putInt(FirebaseAnalytics.Param.ITEM_ID, 1);    
bundle.putString("Shared_text", "Here just a text in Hebrew language");    
firebaseAnalytics.logEvent("Shared_app",bundle);

Logs:

Shared_app, Bundle[{Shared_text=Here just a text in Hebrew language,     
firebase_event_origin(_o)=app, firebase_screen_class(_sc)=Message,     
firebase_screen_id(_si)=5901034026982773896, content_type=NetworkShare01,     
item_id=1}] 
2 Answers

Try changing this :

bundle.putInt(FirebaseAnalytics.Param.ITEM_ID, 1);

To :

bundle.putString(FirebaseAnalytics.Param.ITEM_ID, String.valueOf(1));

Related