Reputation: 3729
I am working Firebase event log I was able to see my logs and wanted to print a unique id whose length is 42. but when I added this to event then its giving me following error
Value is too long; discarded. Value kind, name, value length: param, item_id, 42
Bundle bundle = new Bundle();
bundle.putString(FirebaseAnalytics.Param.ITEM_ID, api_ID);
bundle.putString(FirebaseAnalytics.Param.ITEM_NAME, transaction_ID);
bundle.putString(FirebaseAnalytics.Param.CONTENT_TYPE, transaction_ID);
MyApplication.getFirebaseAnalytics().logEvent(FirebaseAnalytics.Event.SELECT_CONTENT, bundle);
I understand the error, suggest any other way to log the id (length is 42).
All answers will be appreciated.
Upvotes: 0
Views: 1825
Reputation: 56925
As per the latest Firebase document, Param values can be up to 100 characters long.
Please make sure you are using the latest firebase library in gradle.
Upvotes: 2